From: runsisi Date: Wed, 11 May 2016 12:34:51 +0000 (+0800) Subject: rbd-mirror: use the already known pool name directly X-Git-Tag: v11.0.0~572^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e7fa159e7eb5f1bcafaa8713bfbf42b981930cc4;p=ceph.git rbd-mirror: use the already known pool name directly no need to try to get the pool name by pool id again Signed-off-by: runsisi --- diff --git a/src/tools/rbd_mirror/ClusterWatcher.cc b/src/tools/rbd_mirror/ClusterWatcher.cc index 7a1e14ac317f..cad29f17625a 100644 --- a/src/tools/rbd_mirror/ClusterWatcher.cc +++ b/src/tools/rbd_mirror/ClusterWatcher.cc @@ -122,7 +122,7 @@ void ClusterWatcher::read_configs(map > *peer_configs, (*peer_configs)[peer].insert(pool_id); } - pool_names->insert(ioctx.get_pool_name()); + pool_names->insert(pool_name); } }