]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonClient: warn if global_id changes
authorSage Weil <sage@redhat.com>
Mon, 17 Dec 2018 19:18:29 +0000 (13:18 -0600)
committerSage Weil <sage@redhat.com>
Thu, 3 Jan 2019 17:17:31 +0000 (11:17 -0600)
Shouldn't happen!

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/MonClient.cc

index 2055ddbce8f6cf97a88319e7dc9c95b66198965a..61a1fcbd2b9f2003fa5d3b7f7268b8998f95bea7 100644 (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();
     }
   }