]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
pybind/rados: do not use wait_for_safe() anymore
authorKefu Chai <kchai@redhat.com>
Tue, 22 Oct 2019 06:18:10 +0000 (14:18 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 1 Nov 2019 01:40:44 +0000 (09:40 +0800)
commit739427fd44b96ea5dc5c89a660303b158e1c65d8
tree6b3916982c4cbc369914e53aaeb9e00e958e11ef
parentaaab90fb07309d97896c53b0aefadc9bc5bce8db
pybind/rados: do not use wait_for_safe() anymore

in librados, wait_for_safe() is an alias of wait_for_complete(). so in
this change, wait_for_safe() calls wait_for_complete(), and the callers
of wait_for_safe() will just call wait_for_complete(), instead of
calling both of them.

also, rados_aio_create_completion() is replaced with
rados_aio_create_completion2().

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/rados/rados.pyx
src/test/pybind/test_rados.py