]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MonClient: send logs to mon even if we have no keelalive2
authorSage Weil <sage@redhat.com>
Wed, 4 Mar 2020 22:19:51 +0000 (16:19 -0600)
committerSage Weil <sage@redhat.com>
Thu, 5 Mar 2020 12:45:26 +0000 (06:45 -0600)
This looks like a subtle regression introduced inadvertantly by
a2eb6ae3fb57b09efdd4d7baac6871ca8dd8e79f.

Sending logs has nothing to do with the connection features or whether/how
we are timing out.

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

index dbb4287a2a2ebda4f398daabc5e96b9f6b303031..033d8a0085023e37e70c09644db9f50067966335 100644 (file)
@@ -924,10 +924,11 @@ void MonClient::tick()
                      << " seconds), reconnecting" << dendl;
        return _reopen_session();
       }
-      send_log();
     }
 
     _un_backoff();
+
+    send_log();
   }
 }