From 6b89701580b6e1029c535cd73b930cfcd5e784a8 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Mon, 8 Aug 2022 16:47:29 -0400 Subject: [PATCH] rgw: DataSyncShardCR resets backoff after successful lock Signed-off-by: Casey Bodley --- src/rgw/rgw_data_sync.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index e853752d083d8..010a3d35300e6 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -1971,7 +1971,7 @@ class RGWDataSyncShardCR : public RGWCoroutine { rgw_data_sync_marker& sync_marker; rgw_data_sync_status sync_status; const RGWSyncTraceNodeRef tn; - bool *reset_backoff; // TODO We do nothing with this pointer. + bool *reset_backoff; ceph::mutex inc_lock = ceph::make_mutex("RGWDataSyncShardCR::inc_lock"); ceph::condition_variable inc_cond; @@ -2028,6 +2028,7 @@ public: set_sleeping(true); yield; } + *reset_backoff = true; tn->log(10, "took lease"); while (true) { -- 2.39.5