From: Kefu Chai Date: Mon, 12 Dec 2016 03:24:16 +0000 (+0800) Subject: pybind/rados: add missing "length" requires for aio_execute() X-Git-Tag: v11.1.0~3^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F12439%2Fhead;p=ceph.git pybind/rados: add missing "length" requires for aio_execute() Signed-off-by: Kefu Chai --- diff --git a/src/pybind/rados/rados.pyx b/src/pybind/rados/rados.pyx index b134ccd13040..5f274c7979fc 100644 --- a/src/pybind/rados/rados.pyx +++ b/src/pybind/rados/rados.pyx @@ -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):