From 212643629477e0af6cd98a83a3809203afef672d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Mon, 12 Dec 2016 11:24:16 +0800 Subject: [PATCH] pybind/rados: add missing "length" requires for aio_execute() Signed-off-by: Kefu Chai --- src/pybind/rados/rados.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.47.3