mon/MonClient: warn if global_id changes

Shouldn't happen!

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2018-12-17 13:18:29 -06:00
parent 50f5e328d7
commit 609c6d76bc

View File

@ -577,6 +577,10 @@ void MonClient::handle_auth(MAuthReply *m)
send_log(true);
if (active_con) {
std::swap(auth, active_con->get_auth());
if (global_id && global_id != active_con->get_global_id()) {
lderr(cct) << __func__ << " global_id changed from " << global_id
<< " to " << active_con->get_global_id() << dendl;
}
global_id = active_con->get_global_id();
}
}