]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd-mirror: use the already known pool name directly
authorrunsisi <runsisi@zte.com.cn>
Wed, 11 May 2016 12:34:51 +0000 (20:34 +0800)
committerrunsisi <runsisi@zte.com.cn>
Wed, 11 May 2016 13:10:22 +0000 (21:10 +0800)
no need to try to get the pool name by pool id again

Signed-off-by: runsisi <runsisi@zte.com.cn>
src/tools/rbd_mirror/ClusterWatcher.cc

index 7a1e14ac317feeb45946fff289e470bca0d3ef3f..cad29f17625a1b29a3aba2d31939d06aa7252629 100644 (file)
@@ -122,7 +122,7 @@ void ClusterWatcher::read_configs(map<peer_t, set<int64_t> > *peer_configs,
       (*peer_configs)[peer].insert(pool_id);
     }
 
-    pool_names->insert(ioctx.get_pool_name());
+    pool_names->insert(pool_name);
   }
 }