From 0a306290eefdc6910e84c5f86fa33c9475e974ec Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Thu, 21 Feb 2019 14:58:42 -0800 Subject: [PATCH] rgw: remove unused variable Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_data_sync.cc | 5 ++--- src/rgw/rgw_data_sync.h | 2 -- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/rgw/rgw_data_sync.cc b/src/rgw/rgw_data_sync.cc index 1e87aaee32e59..e7dee93879241 100644 --- a/src/rgw/rgw_data_sync.cc +++ b/src/rgw/rgw_data_sync.cc @@ -1977,11 +1977,10 @@ string RGWDataSyncStatusManager::shard_obj_name(const string& source_zone, int s RGWRemoteBucketLog::RGWRemoteBucketLog(const DoutPrefixProvider *_dpp, rgw::sal::RGWRadosStore *_store, - RGWBucketSyncStatusManager *_sm, RGWAsyncRadosProcessor *_async_rados, RGWHTTPManager *_http_manager) : RGWCoroutinesManager(_store->ctx(), _store->getRados()->get_cr_registry()), - dpp(_dpp), store(_store), status_manager(_sm), + dpp(_dpp), store(_store), async_rados(_async_rados), http_manager(_http_manager) { } @@ -3430,7 +3429,7 @@ int RGWBucketSyncStatusManager::init() auto async_rados = store->svc()->rados->get_async_processor(); for (int i = 0; i < effective_num_shards; i++) { - RGWRemoteBucketLog *l = new RGWRemoteBucketLog(this, store, this, async_rados, &http_manager); + RGWRemoteBucketLog *l = new RGWRemoteBucketLog(this, store, async_rados, &http_manager); ret = l->init(source_zone, conn, bucket, (num_shards ? i : -1), error_logger, store->getRados()->get_sync_tracer(), sync_module); if (ret < 0) { ldpp_dout(this, 0) << "ERROR: failed to initialize RGWRemoteBucketLog object" << dendl; diff --git a/src/rgw/rgw_data_sync.h b/src/rgw/rgw_data_sync.h index 6979399097df6..f353714988d4e 100644 --- a/src/rgw/rgw_data_sync.h +++ b/src/rgw/rgw_data_sync.h @@ -529,7 +529,6 @@ class RGWRemoteBucketLog : public RGWCoroutinesManager { string source_zone; rgw_bucket_shard bs; - RGWBucketSyncStatusManager *status_manager; RGWAsyncRadosProcessor *async_rados; RGWHTTPManager *http_manager; @@ -540,7 +539,6 @@ class RGWRemoteBucketLog : public RGWCoroutinesManager { public: RGWRemoteBucketLog(const DoutPrefixProvider *_dpp, rgw::sal::RGWRadosStore *_store, - RGWBucketSyncStatusManager *_sm, RGWAsyncRadosProcessor *_async_rados, RGWHTTPManager *_http_manager); -- 2.39.5