Project

General

Profile

Bug #2278

librados: python read has arguments swapped

Added by Tomasz Paskowski almost 12 years ago. Updated almost 12 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
librados
Target version:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Object.read from rados.py is passing arguments to ioctx.read in a wrong order.

--- rados.py.dist 2012-04-13 16:52:41.155452434 0200
+
+ rados.py 2012-04-13 16:53:03.887451909 0200
@ -762,7 +762,7 @
@set_object_locator
def read(self, length = 1024*1024):
self.require_object_exists()
- ret = self.ioctx.read(self.key, self.offset, length)
ret = self.ioctx.read(self.key, length, self.offset)
self.offset += len(ret)
return ret

History

#1 Updated by Sage Weil almost 12 years ago

  • Status changed from New to 12
  • Priority changed from Normal to High
  • Target version set to v0.46

#2 Updated by Josh Durgin almost 12 years ago

  • Subject changed from Bug in python binding to librados: python read has arguments swapped
  • Assignee set to Josh Durgin
  • Source changed from Development to Community (dev)

#3 Updated by Josh Durgin almost 12 years ago

  • Status changed from 12 to Resolved

Fixed by 76799680546a79fc73ad7bbc58960a31ae2290ad.

Also available in: Atom PDF