mirror of
https://github.com/ceph/ceph
synced 2025-01-09 20:52:09 +00:00
osd/OSDMap: fix Incremental dump
The front hb addr entry may not be present. Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
8e982071c0
commit
b528a915f6
@ -473,7 +473,9 @@ void OSDMap::Incremental::dump(Formatter *f) const
|
||||
f->dump_stream("public_addr") << p->second;
|
||||
f->dump_stream("cluster_addr") << new_up_cluster.find(p->first)->second;
|
||||
f->dump_stream("heartbeat_back_addr") << new_hb_back_up.find(p->first)->second;
|
||||
f->dump_stream("heartbeat_front_addr") << new_hb_front_up.find(p->first)->second;
|
||||
map<int32_t, entity_addr_t>::const_iterator q;
|
||||
if ((q = new_hb_front_up.find(p->first)) != new_hb_front_up.end())
|
||||
f->dump_stream("heartbeat_front_addr") << q->second;
|
||||
f->close_section();
|
||||
}
|
||||
f->close_section();
|
||||
|
Loading…
Reference in New Issue
Block a user