]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/rados: rgw_rados_operate() takes version_t* 59998/head
authorCasey Bodley <cbodley@redhat.com>
Wed, 25 Sep 2024 22:38:08 +0000 (18:38 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 26 Sep 2024 20:44:52 +0000 (16:44 -0400)
commit7769bdb9438d48afc8500c16167f82c8f549a914
tree3d94c307a6403681b1c7a41b60d2c737bddaf3ec
parent5cc7cf44dba51f8071a6b7cd919c019283ac4ce1
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>
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