]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/multisite: set truncated flag to true after fetching remote mdlogs. 51496/head
authorShilpa Jagannath <smanjara@redhat.com>
Wed, 4 May 2022 14:40:41 +0000 (10:40 -0400)
committerCasey Bodley <cbodley@redhat.com>
Mon, 15 May 2023 18:52:05 +0000 (14:52 -0400)
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 <smanjara@redhat.com>
(cherry picked from commit 256f6b3a07505a5f67b6583e69f588cd1d408c6e)

src/rgw/rgw_sync.cc

index 6cf50171836bf515d0b1d886c83e27404e455463..24b5ce5b1c01c8d321c5457f6f70d3bffdc65bbb 100644 (file)
@@ -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 */