]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: remove unused clone_shards() in metadata sync
authorCasey Bodley <cbodley@redhat.com>
Fri, 29 Jan 2016 19:59:35 +0000 (14:59 -0500)
committerYehuda Sadeh <yehuda@redhat.com>
Thu, 18 Feb 2016 22:04:18 +0000 (14:04 -0800)
clone_shards() was an exact duplicate for fetch()

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sync.cc
src/rgw/rgw_sync.h

index 2191ddbba2e04030bb9dca8a12602db4428ebb51..dfcaf16c54ae10a06e6c5c051e62319296123ee6 100644 (file)
@@ -1618,19 +1618,6 @@ void RGWRemoteMetaLog::init_sync_env(RGWMetaSyncEnv *env) {
   env->error_logger = error_logger;
 }
 
-int RGWRemoteMetaLog::clone_shards(int num_shards, vector<string>& clone_markers)
-{
-  list<RGWCoroutinesStack *> stacks;
-  for (int i = 0; i < (int)num_shards; i++) {
-    RGWCoroutinesStack *stack = new RGWCoroutinesStack(store->ctx(), this);
-    stack->call(new RGWCloneMetaLogCoroutine(&sync_env, i, clone_markers[i], NULL));
-
-    stacks.push_back(stack);
-  }
-
-  return run(stacks);
-}
-
 int RGWRemoteMetaLog::fetch(int num_shards, vector<string>& clone_markers)
 {
   list<RGWCoroutinesStack *> stacks;
index e7d4b212df81976db85ddaa14e6abf506ad402b1..29c5942b26bed091f20ff5d8894aed214e245af8 100644 (file)
@@ -175,7 +175,6 @@ public:
   int list_shard(int shard_id);
   int list_shards(int num_shards);
   int get_shard_info(int shard_id);
-  int clone_shards(int num_shards, vector<string>& clone_markers);
   int fetch(int num_shards, vector<string>& clone_markers);
   int read_sync_status(rgw_meta_sync_status *sync_status);
   int init_sync_status(int num_shards);
@@ -230,7 +229,6 @@ public:
   int read_sync_status() { return master_log.read_sync_status(&sync_status); }
   int init_sync_status() { return master_log.init_sync_status(num_shards); }
   int fetch() { return master_log.fetch(num_shards, clone_markers); }
-  int clone_shards() { return master_log.clone_shards(num_shards, clone_markers); }
 
   int run() { return master_log.run_sync(num_shards, sync_status); }