Skip to content

Commit 165ab1e

Browse files
author
Shilpa Jagannath
committed
rgw/multisite: correct the marker_tracker->flush() call and only
call it when we have lost bid. Signed-off-by: Shilpa Jagannath <[email protected]>
1 parent beb44d1 commit 165ab1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/driver/rados/rgw_data_sync.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,9 +2122,9 @@ class RGWDataIncSyncShardCR : public RGWDataBaseSyncShardCR {
21222122
} while (true);
21232123

21242124
drain_all();
2125-
yield marker_tracker->flush();
21262125

21272126
if (lost_bid) {
2127+
yield call(marker_tracker->flush());
21282128
return set_cr_error(-EBUSY);
21292129
} else if (lost_lock) {
21302130
return set_cr_error(-ECANCELED);

0 commit comments

Comments
 (0)