From 0011b181f144225205f4b3b07766b052c6966937 Mon Sep 17 00:00:00 2001 From: Shilpa Jagannath Date: Wed, 4 May 2022 10:40:41 -0400 Subject: [PATCH] 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) --- src/rgw/rgw_sync.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rgw/rgw_sync.cc b/src/rgw/rgw_sync.cc index 6cf50171836b..24b5ce5b1c01 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 */ -- 2.47.3