summaryrefslogtreecommitdiffstats
path: root/src/tools/immutable_object_cache
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2019-10-29 08:08:57 +0100
committerKefu Chai <kchai@redhat.com>2019-11-01 10:27:21 +0100
commit9e1d1deeaf23dba97ed292ba6f85d3d842fe3fcc (patch)
treee0e1aa9782f4f607f19746125426b44465263cd2 /src/tools/immutable_object_cache
parenttest/libradosstriper: use new aio_create_completion() (diff)
downloadceph-9e1d1deeaf23dba97ed292ba6f85d3d842fe3fcc.tar.xz
ceph-9e1d1deeaf23dba97ed292ba6f85d3d842fe3fcc.zip
librbd: use new aio_create_completion()
to silence warnings like: src/librbd/Utils.h:139:48: warning: 'static librados::v14_2_0::AioCompletion* librados::v14_2_0::Rados::aio_create_completion(void*, librados::callback_t, librados::callback_t)' is deprecated [-Wdeprecated-declarations] return librados::Rados::aio_create_completion( ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ obj, &detail::rados_callback<T, MF>, nullptr); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/tools/immutable_object_cache')
-rw-r--r--src/tools/immutable_object_cache/Utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/immutable_object_cache/Utils.h b/src/tools/immutable_object_cache/Utils.h
index 38f65066524..3c68cfa7b1f 100644
--- a/src/tools/immutable_object_cache/Utils.h
+++ b/src/tools/immutable_object_cache/Utils.h
@@ -23,7 +23,7 @@ void rados_callback(rados_completion_t c, void *arg) {
template <typename T, void(T::*MF)(int)=&T::complete>
librados::AioCompletion *create_rados_callback(T *obj) {
return librados::Rados::aio_create_completion(
- obj, &detail::rados_callback<T, MF>, nullptr);
+ obj, &detail::rados_callback<T, MF>);
}
} // namespace immutable_obj_cache