]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/multisite: set truncated flag to true after fetching remote mdlogs. 46148/head
authorShilpa Jagannath <smanjara@redhat.com>
Wed, 4 May 2022 14:40:41 +0000 (10:40 -0400)
committerShilpa Jagannath <smanjara@redhat.com>
Wed, 4 May 2022 14:40:41 +0000 (10:40 -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>
src/rgw/rgw_sync.cc

index 52dfa874a11bc3279e0cda1de0f1d9e82251a4ea..1015930b04de77cd0e99948c5fc3052c866e0391 100644 (file)
@@ -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 */