From: Shilpa Jagannath Date: Wed, 4 May 2022 14:40:41 +0000 (-0400) Subject: rgw/multisite: set truncated flag to true after fetching remote mdlogs. X-Git-Tag: v17.2.7~388^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F51496%2Fhead;p=ceph.git rgw/multisite: set truncated flag to true after fetching remote mdlogs. This is in addition to 2ed1c3e. Ensures that the we continue syncing logs that have been fetched already and don't end up cloning more logs prematurely. Signed-off-by: Shilpa Jagannath (cherry picked from commit 256f6b3a07505a5f67b6583e69f588cd1d408c6e) --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 6cf50171836..24b5ce5b1c0 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -1782,6 +1782,7 @@ public: *reset_backoff = false; // back off and try again later return retcode; } + truncated = true; *reset_backoff = true; /* if we got to this point, all systems function */ if (mdlog_marker > max_marker) { tn->set_flag(RGW_SNS_FLAG_ACTIVE); /* actually have entries to sync */