]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/multisite: in order to sleep between mdlog polling events, we check if the mdlog_... wip-rgw-mdlog-polling 52400/head
authorShilpa Jagannath <smanjara@redhat.com>
Tue, 27 Jun 2023 20:32:32 +0000 (16:32 -0400)
committerShilpa Jagannath <smanjara@redhat.com>
Tue, 11 Jul 2023 16:28:23 +0000 (12:28 -0400)
commit2529b687096dff0db254e3b2e54e4a1189638284
tree4eaf1f6047fcbb13e5ed2db1f2c15646b24bbd99
parent669f76b058ead17dcd6e0abaf7fd1e96a10c2377
rgw/multisite: in order to sleep between mdlog polling events, we check if the mdlog_marker is not modified by comparing
mdlog_marker and max_marker. but max_marker is exposed to changes from RGWReadMDLogEntriesCR, and if there is a race
coming from mdlog trimming which could render max_marker empty, then its comparison with mdlog polling can be incorrect.
To fix this, we now save the previous mdlog marker and compare with the updated mdlog marker.

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
src/rgw/driver/rados/rgw_sync.cc