]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused variable
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 21 Feb 2019 22:58:42 +0000 (14:58 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 28 Jan 2020 18:20:36 +0000 (10:20 -0800)
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_data_sync.cc
src/rgw/rgw_data_sync.h

index 1e87aaee32e590168874d4da732860fb47e7428c..e7dee938792410dd1521963629b722b6fa1bacd6 100644 (file)
@@ -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;
index 6979399097df6cd40b6764effaa3e5150b8147ca..f353714988d4e35ccbcfe2e4041bdd135a69a0f3 100644 (file)
@@ -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);