]> 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_... 52568/head
authorShilpa Jagannath <smanjara@redhat.com>
Mon, 17 Jul 2023 16:52:07 +0000 (12:52 -0400)
committerShilpa Jagannath <smanjara@redhat.com>
Mon, 17 Jul 2023 16:52:07 +0000 (12:52 -0400)
commitbae10f22e8b008088f0861db2785d8c0ba7ee506
tree80cbaae15e04e6126acc91cf7e12b8ea034e552c
parent82ddbb6cd1fbf3c9f827fcc4c5470c8412b813c0
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