summaryrefslogtreecommitdiffstats
path: root/src/mon/MonClient.h
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2010-06-09 00:17:08 +0200
committerSage Weil <sage@newdream.net>2010-06-09 00:17:08 +0200
commit2fa4a069e8a42bf606fb41ecb7bf8502af3d01f9 (patch)
treeef7c723e213ca98a2ee0b0344aafd080ab56c55f /src/mon/MonClient.h
parentmon: clean up monmapmonitor warnings, style (diff)
downloadceph-2fa4a069e8a42bf606fb41ecb7bf8502af3d01f9.tar.xz
ceph-2fa4a069e8a42bf606fb41ecb7bf8502af3d01f9.zip
mon: identify monitors by name, not rank
Diffstat (limited to 'src/mon/MonClient.h')
-rw-r--r--src/mon/MonClient.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mon/MonClient.h b/src/mon/MonClient.h
index 4b4beb5744b..ae1b783f7e9 100644
--- a/src/mon/MonClient.h
+++ b/src/mon/MonClient.h
@@ -206,13 +206,13 @@ public:
entity_addr_t get_mon_addr(unsigned i) {
Mutex::Locker l(monc_lock);
if (i < monmap.size())
- return monmap.mon_inst[i].addr;
+ return monmap.get_addr(i);
return entity_addr_t();
}
entity_inst_t get_mon_inst(unsigned i) {
Mutex::Locker l(monc_lock);
if (i < monmap.size())
- return monmap.mon_inst[i];
+ return monmap.get_inst(i);
return entity_inst_t();
}
int get_num_mon() {