summaryrefslogtreecommitdiffstats
path: root/src/librados/librados_cxx.cc
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2019-10-22 09:34:08 +0200
committerKefu Chai <kchai@redhat.com>2019-11-01 02:40:44 +0100
commitaaab90fb07309d97896c53b0aefadc9bc5bce8db (patch)
treee5d5826e35777ce68e3ddd9420b515fcfc6a8a0d /src/librados/librados_cxx.cc
parentlibrados: add rados_aio_create_completion2() (diff)
downloadceph-aaab90fb07309d97896c53b0aefadc9bc5bce8db.tar.xz
ceph-aaab90fb07309d97896c53b0aefadc9bc5bce8db.zip
librados: add Rados::aio_create_completion(arg, cb)
which does not take safe_cb, and will take the place of Rados::aio_create_completion(arg, cb_complete, cb_safe) Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/librados/librados_cxx.cc')
-rw-r--r--src/librados/librados_cxx.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/librados/librados_cxx.cc b/src/librados/librados_cxx.cc
index 3b2007270bb..c888d2d163b 100644
--- a/src/librados/librados_cxx.cc
+++ b/src/librados/librados_cxx.cc
@@ -2798,6 +2798,15 @@ librados::AioCompletion *librados::Rados::aio_create_completion(void *cb_arg,
return new AioCompletion(c);
}
+librados::AioCompletion *librados::Rados::aio_create_completion(void *cb_arg,
+ callback_t cb_complete)
+{
+ AioCompletionImpl *c;
+ int r = rados_aio_create_completion(cb_arg, cb_complete, (void**)&c);
+ ceph_assert(r == 0);
+ return new AioCompletion(c);
+}
+
librados::ObjectOperation::ObjectOperation() : impl(new ObjectOperationImpl) {}
librados::ObjectOperation::ObjectOperation(ObjectOperation&& rhs)