From: Sage Weil Date: Wed, 17 Jul 2019 19:36:47 +0000 (-0500) Subject: pybind/rados: fix set_omap() crash on py3 X-Git-Tag: v15.1.0~2139^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=fb605e10b215711e214178d989cf309028c2d360;p=ceph-ci.git pybind/rados: fix set_omap() crash on py3 For some reason vals was ending up NULL inside rados_write_op_omap_set Signed-off-by: Sage Weil --- diff --git a/src/pybind/rados/rados.pyx b/src/pybind/rados/rados.pyx index 24da79c86cd..ed961935b3f 100644 --- a/src/pybind/rados/rados.pyx +++ b/src/pybind/rados/rados.pyx @@ -3385,6 +3385,7 @@ returned %d, but should return zero on success." % (self.name, ret)) raise Error("Rados(): keys and values must have the same number of items") keys = cstr_list(keys, 'keys') + values = cstr_list(values, 'values') cdef: WriteOp _write_op = write_op size_t key_num = len(keys)