]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: use new aio_create_completion()
authorKefu Chai <kchai@redhat.com>
Tue, 29 Oct 2019 07:08:57 +0000 (15:08 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 1 Nov 2019 09:27:21 +0000 (17:27 +0800)
commit9e1d1deeaf23dba97ed292ba6f85d3d842fe3fcc
treee0e1aa9782f4f607f19746125426b44465263cd2
parentd2b0d699c3a41a9bf3f7c6d08a7140df208d8103
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>
src/librbd/Utils.h
src/tools/immutable_object_cache/Utils.h