]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rados: rgw_rados_operate() takes version_t* 60065/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 25 Sep 2024 22:38:08 +0000 (18:38 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 10 Oct 2024 13:21:36 +0000 (09:21 -0400)
commitac6f659f6c0b94a82c4a0da4a24d9a84f233026e
tree4ecef4ef655d34d19f20e398a5e9cbbcf81f9495
parentda390122289fd948a68b07b4f693ca03bd7d7076
rgw/rados: rgw_rados_operate() takes version_t*

instead of calling ioctx.get_last_version() after a rados operation,
callers now pass version_t* as an output parameter. in the null_yield
case, that version is assigned to ioctx.get_last_version() as normal. in
the async case, we get the version out of librados::async_operate()'s
return value

Fixes: https://tracker.ceph.com/issues/63935
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 7769bdb9438d48afc8500c16167f82c8f549a914)

Conflicts: maybe_warn_about_blocking() not backported
src/rgw/driver/rados/rgw_tools.cc
src/rgw/driver/rados/rgw_rados.cc
src/rgw/driver/rados/rgw_rados.h
src/rgw/driver/rados/rgw_tools.cc
src/rgw/driver/rados/rgw_tools.h
src/rgw/rgw_aio.cc
src/rgw/services/svc_sys_obj_core.cc