Skip to content

Commit 84dcf80

Browse files
authored
Merge pull request ceph#53676 from smanjara/data-sync-fairness-crash
rgw/multisite: call drain before flushing markers in incremental sync Reviewed-by: Casey Bodley <[email protected]>
2 parents 98cdc09 + 595aeb5 commit 84dcf80

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)