]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw:multisite: clean up RGWRemoteDataLog unused function 16236/head
authorlu.shasha <lu.shasha@eisoo.com>
Mon, 10 Jul 2017 08:14:55 +0000 (16:14 +0800)
committerlu.shasha <lu.shasha@eisoo.com>
Mon, 10 Jul 2017 08:14:55 +0000 (16:14 +0800)
'RGWRemoteDataLog::get_shard_info' function not used, drop it

Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
src/rgw/rgw_data_sync.cc
src/rgw/rgw_data_sync.h

index a7cfd5c587366413eaf7817fd80d2be356efef8e..5090ba1333ad7e51cc510709ac61e2b77829a98b 100644 (file)
@@ -635,28 +635,6 @@ void RGWRemoteDataLog::finish()
   stop();
 }
 
-int RGWRemoteDataLog::get_shard_info(int shard_id)
-{
-  char buf[32];
-  snprintf(buf, sizeof(buf), "%d", shard_id);
-
-  rgw_http_param_pair pairs[] = { { "type", "data" },
-                                  { "id", buf },
-                                  { "info", NULL },
-                                  { NULL, NULL } };
-
-  RGWDataChangesLogInfo info;
-  int ret = sync_env.conn->get_json_resource("/admin/log", pairs, info);
-  if (ret < 0) {
-    ldout(store->ctx(), 0) << "ERROR: failed to fetch datalog info" << dendl;
-    return ret;
-  }
-
-  ldout(store->ctx(), 20) << "remote datalog, shard_id=" << shard_id << " marker=" << info.marker << dendl;
-
-  return 0;
-}
-
 int RGWRemoteDataLog::read_sync_status(rgw_data_sync_status *sync_status)
 {
   // cannot run concurrently with run_sync(), so run in a separate manager
index 00e094474557d446512aaee86bee44521487af36..934f3f322c43af28f365a0c27131fca6022ee900 100644 (file)
@@ -262,7 +262,6 @@ public:
   int read_log_info(rgw_datalog_info *log_info);
   int read_source_log_shards_info(map<int, RGWDataChangesLogInfo> *shards_info);
   int read_source_log_shards_next(map<int, string> shard_markers, map<int, rgw_datalog_shard_data> *result);
-  int get_shard_info(int shard_id);
   int read_sync_status(rgw_data_sync_status *sync_status);
   int init_sync_status(int num_shards);
   int run_sync(int num_shards);