]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/multisite: in order to sleep between mdlog polling events, we check if the mdlog_... 60793/head
authorShilpa Jagannath <smanjara@redhat.com>
Mon, 17 Jul 2023 16:52:07 +0000 (12:52 -0400)
committerShilpa Jagannath <smanjara@redhat.com>
Mon, 6 Jan 2025 18:07:23 +0000 (10:07 -0800)
commit336d0403ef6efc0746996f10389d96d0868a6ad3
treea5cfa15884dfd4adb4d91e26b42de4aab165aa34
parent0fdb6863d9a2aa98bd8cadb3e5b9cd3547b61b05
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>
(cherry picked from commit bae10f22e8b008088f0861db2785d8c0ba7ee506)

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