diff options
author | xie xingguo <xie.xingguo@zte.com.cn> | 2019-03-15 09:14:20 +0100 |
---|---|---|
committer | xie xingguo <xie.xingguo@zte.com.cn> | 2019-03-15 09:17:06 +0100 |
commit | 53d4fe6ba8c25b8c73113d3dfe2afccebc4efd81 (patch) | |
tree | e24e1529b74533e97b13a47d6d47092a4c3a8022 /src/mon/MonMap.h | |
parent | mon/MonMap: kill dead msgr type checking (diff) | |
download | ceph-53d4fe6ba8c25b8c73113d3dfe2afccebc4efd81.tar.xz ceph-53d4fe6ba8c25b8c73113d3dfe2afccebc4efd81.zip |
mon/MonMap: dump priority
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Diffstat (limited to 'src/mon/MonMap.h')
-rw-r--r-- | src/mon/MonMap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mon/MonMap.h b/src/mon/MonMap.h index f9a043a0335..dff996f2a1d 100644 --- a/src/mon/MonMap.h +++ b/src/mon/MonMap.h @@ -370,6 +370,11 @@ public: mon_info[n].public_addrs = a; calc_addr_mons(); } + uint16_t get_priority(const string& n) const { + auto it = mon_info.find(n); + ceph_assert(it != mon_info.end()); + return it->second.priority; + } void encode(bufferlist& blist, uint64_t con_features) const; void decode(bufferlist& blist) { |