From 34f8306fe5c1bfb90c57f2453a0624af4c2ac6c7 Mon Sep 17 00:00:00 2001 From: Shilpa Jagannath Date: Mon, 9 Sep 2024 15:55:13 -0400 Subject: [PATCH] rgw/multisite: no need to capture error from callback. we are already doing that within RGWDataFullSyncSingleEntryCR() Signed-off-by: Shilpa Jagannath --- src/rgw/driver/rados/rgw_data_sync.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/rgw/driver/rados/rgw_data_sync.cc b/src/rgw/driver/rados/rgw_data_sync.cc index c509443f800..aaab19131bc 100644 --- a/src/rgw/driver/rados/rgw_data_sync.cc +++ b/src/rgw/driver/rados/rgw_data_sync.cc @@ -1866,12 +1866,7 @@ public: error_repo, entry_timestamp, lease_cr, bucket_shard_cache, &*marker_tracker, tn), sc->lcc.adj_concurrency(cct->_conf->rgw_data_sync_spawn_window), - [&](uint64_t stack_id, int ret) { - if (ret < 0) { - retcode = ret; - } - return retcode; - }); + std::nullopt); } sync_marker.marker = iter->first; } -- 2.39.5