mon: clean up probe debug output a bit

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2019-01-15 08:53:31 -06:00
parent cb5ada1970
commit 0c2f792aa7

View File

@ -1829,7 +1829,8 @@ void Monitor::handle_probe_probe(MonOpRequestRef op)
void Monitor::handle_probe_reply(MonOpRequestRef op)
{
MMonProbe *m = static_cast<MMonProbe*>(op->get_req());
dout(10) << "handle_probe_reply " << m->get_source_inst() << *m << dendl;
dout(10) << "handle_probe_reply " << m->get_source_inst()
<< " " << *m << dendl;
dout(10) << " monmap is " << *monmap << dendl;
// discover name and addrs during probing or electing states.
@ -1870,8 +1871,10 @@ void Monitor::handle_probe_reply(MonOpRequestRef op)
bootstrap();
return;
}
} else {
} else if (peer_name.size()) {
dout(10) << " peer name is " << peer_name << dendl;
} else {
dout(10) << " peer " << m->get_source_addr() << " not in map" << dendl;
}
// new initial peer?