Skip to content

Commit

Permalink
rbd-mirror: use the already known pool name directly
Browse files Browse the repository at this point in the history
no need to try to get the pool name by pool id again

Signed-off-by: runsisi <[email protected]>
  • Loading branch information
runsisi committed May 11, 2016
1 parent 89d1601 commit e7fa159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/rbd_mirror/ClusterWatcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit e7fa159

Please sign in to comment.