From 090a13354558b7f1c55ff1cda281153da6a19e0f Mon Sep 17 00:00:00 2001 From: Shilpa Jagannath Date: Thu, 4 Aug 2022 10:23:33 -0400 Subject: [PATCH] rgw/multisite: remove redundant drain_all_cb() call Signed-off-by: Shilpa Jagannath --- src/rgw/rgw_data_sync.cc | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index d75f55f1a51..78d3dc222ca 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -1341,8 +1341,8 @@ public: progress = ceph::real_time{}; ldout(cct, 4) << "starting sync on " << bucket_shard_str{state->key.first} - << ' ' << *state->obligation << "progress timestamp " << state->progress_timestamp - << "progress " << progress << dendl; + << ' ' << *state->obligation << " progress timestamp " << state->progress_timestamp + << " progress " << progress << dendl; yield call(new RGWRunBucketSourcesSyncCR(sc, lease_cr, state->key.first, tn, state->obligation->gen, @@ -1609,13 +1609,6 @@ public: }); } - drain_all_cb([&](uint64_t stack_id, int ret) { - if (ret < 0) { - tn->log(10, SSTR("a sync operation returned error: " << ret)); - } - return ret; - }); - yield call(marker_tracker->finish(key)); return set_cr_done(); -- 2.39.5