From 165ab1e06ab760d06f8bd0d9982051071e7c12ae Mon Sep 17 00:00:00 2001 From: Shilpa Jagannath Date: Wed, 1 Nov 2023 11:31:58 -0400 Subject: [PATCH] rgw/multisite: correct the marker_tracker->flush() call and only call it when we have lost bid. Signed-off-by: Shilpa Jagannath --- src/rgw/driver/rados/rgw_data_sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/driver/rados/rgw_data_sync.cc b/src/rgw/driver/rados/rgw_data_sync.cc index bbd3aaf448d..b7ab04bdd24 100644 --- a/src/rgw/driver/rados/rgw_data_sync.cc +++ b/src/rgw/driver/rados/rgw_data_sync.cc @@ -2122,9 +2122,9 @@ public: } while (true); drain_all(); - yield marker_tracker->flush(); if (lost_bid) { + yield call(marker_tracker->flush()); return set_cr_error(-EBUSY); } else if (lost_lock) { return set_cr_error(-ECANCELED); -- 2.47.3