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: v18.0.0~859^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=256f6b3a07505a5f67b6583e69f588cd1d408c6e;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 --- diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 52dfa874a11b..1015930b04de 100644 --- a/src/rgw/rgw_sync.cc +++ b/src/rgw/rgw_sync.cc @@ -1779,6 +1779,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 */