From e7fa159e7eb5f1bcafaa8713bfbf42b981930cc4 Mon Sep 17 00:00:00 2001 From: runsisi Date: Wed, 11 May 2016 20:34:51 +0800 Subject: [PATCH] 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 --- src/tools/rbd_mirror/ClusterWatcher.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/rbd_mirror/ClusterWatcher.cc b/src/tools/rbd_mirror/ClusterWatcher.cc index 7a1e14ac317..cad29f17625 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); } }