]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/MgrClient: fix open condition fix 31422/head
authorSage Weil <sage@redhat.com>
Tue, 5 Nov 2019 17:13:35 +0000 (11:13 -0600)
committerSage Weil <sage@redhat.com>
Tue, 5 Nov 2019 17:13:35 +0000 (11:13 -0600)
Fix fc60989bf7a72c35b8f6b8fec2407b3080ad9bbd, which reversed this
condition.

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

index 0f24ab8171e178245db234a4532edc773084c49f..976d297e639a05b4ce567bd5c6ef5846f71c030e 100644 (file)
@@ -574,7 +574,7 @@ int MgrClient::service_daemon_register(
   daemon_dirty_status = true;
 
   // late register?
-  if (msgr->get_mytype() != CEPH_ENTITY_TYPE_CLIENT && session && session->con) {
+  if (msgr->get_mytype() == CEPH_ENTITY_TYPE_CLIENT && session && session->con) {
     _send_open();
   }