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 <runsisi@zte.com.cn>
This commit is contained in:
runsisi 2016-05-11 20:34:51 +08:00
parent 89d1601cf8
commit e7fa159e7e

View 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);
}
}