]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/rados: rgw_rados_operate() takes version_t* 60097/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 25 Sep 2024 22:38:08 +0000 (18:38 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 2 Oct 2024 20:44:00 +0000 (16:44 -0400)
commit3c9d67b9480cd5bf0839f6e728476c8afd5d13e6
tree7bb18bf09ca9fb32cbbba918426abffa0ae2708a
parent549e7b914634e22fec569c937ee958598cd0aa52
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:
src/rgw/driver/rados/rgw_rados.cc
src/rgw/driver/rados/rgw_tools.cc
src/rgw/driver/rados/rgw_tools.h
src/rgw/services/svc_sys_obj_core.cc
RGWSI_RADOS removal not backported
boost::asio::spawn() not backported
maybe_warn_about_blocking() not backported
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