Skip to content

Commit 595aeb5

Browse files
author
Shilpa Jagannath
committed
rgw/multisite: call drain before flushing markers in incremental sync
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
1 parent 86047f0 commit 595aeb5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rgw/driver/rados/rgw_data_sync.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2121,11 +2121,12 @@ class RGWDataIncSyncShardCR : public RGWDataBaseSyncShardCR {
21212121
}
21222122
} while (true);
21232123

2124+
drain_all();
2125+
yield marker_tracker->flush();
2126+
21242127
if (lost_bid) {
21252128
return set_cr_error(-EBUSY);
21262129
} else if (lost_lock) {
2127-
drain_all();
2128-
yield marker_tracker->flush();
21292130
return set_cr_error(-ECANCELED);
21302131
}
21312132

0 commit comments

Comments
 (0)