mirror of
https://github.com/ceph/ceph
synced 2025-02-12 13:29:17 +00:00
mon/MonClient: warn if global_id changes
Shouldn't happen! Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
50f5e328d7
commit
609c6d76bc
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user