]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/multisite: call drain before flushing markers in incremental sync 53676/head
authorShilpa Jagannath <smanjara@redhat.com>
Tue, 26 Sep 2023 15:44:23 +0000 (11:44 -0400)
committerShilpa Jagannath <smanjara@redhat.com>
Tue, 26 Sep 2023 15:44:23 +0000 (11:44 -0400)
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
src/rgw/driver/rados/rgw_data_sync.cc

index 090e7a4ff449c088eeb1652501b7f5c54f46ccf4..bbd3aaf448dad2bf95a16df40d67f30f5a7545b5 100644 (file)
@@ -2121,11 +2121,12 @@ public:
        }
       } while (true);
 
+      drain_all();
+      yield marker_tracker->flush();
+
       if (lost_bid) {
         return set_cr_error(-EBUSY);
       } else if (lost_lock) {
-        drain_all();
-        yield marker_tracker->flush();
         return set_cr_error(-ECANCELED);
       }