]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/MgrMonitor: send digests only if is_active()
authorKefu Chai <kchai@redhat.com>
Tue, 16 May 2017 11:08:18 +0000 (19:08 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 16 May 2017 13:50:56 +0000 (21:50 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/MgrMonitor.cc

index 74068dcf130b6975628dff1977c5b1fba245ee38..de3c27a245a13f4ab87fa2886b38bd7f9595f256 100644 (file)
@@ -277,6 +277,10 @@ void MgrMonitor::send_digests()
 {
   cancel_timer();
 
+  if (!is_active()) {
+    return;
+  }
+
   const std::string type = "mgrdigest";
   if (mon->session_map.subs.count(type) == 0)
     return;