]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rados: add missing "length" requires for aio_execute() 12439/head
authorKefu Chai <kchai@redhat.com>
Mon, 12 Dec 2016 03:24:16 +0000 (11:24 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 12 Dec 2016 03:24:44 +0000 (11:24 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/rados/rados.pyx

index b134ccd13040a88f86130380c0ef1a40b2ef7fc0..5f274c7979fc1a2b02d671adc5bd0555334ce41e 100644 (file)
@@ -2235,7 +2235,8 @@ cdef class Ioctx(object):
             raise make_ex(ret, "error reading %s" % object_name)
         return completion
 
-    @requires(('object_name', str_type), ('cls', str_type), ('method', str_type), ('data', bytes),
+    @requires(('object_name', str_type), ('cls', str_type), ('method', str_type),
+              ('data', bytes), ('length', int),
               ('oncomplete', opt(Callable)), ('onsafe', opt(Callable)))
     def aio_execute(self, object_name, cls, method, data,
                     length=8192, oncomplete=None, onsafe=None):