]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgrc: fix report sending after failover
authorJohn Spray <john.spray@redhat.com>
Tue, 26 Jul 2016 12:58:04 +0000 (13:58 +0100)
committerJohn Spray <john.spray@redhat.com>
Thu, 29 Sep 2016 16:27:00 +0000 (17:27 +0100)
The send_report loop doesn't get kicked off
on configure messages unless the period is
set to its initial value (0).

Signed-off-by: John Spray <john.spray@redhat.com>
src/mgr/MgrClient.cc

index 715d68307f81e33df2a71a1188a352d64a66461a..2a85f0df3085df915e99470d3cc1899c100d3512 100644 (file)
@@ -96,6 +96,7 @@ bool MgrClient::handle_mgr_map(MMgrMap *m)
                     << session->con->get_peer_addr() << dendl;
       delete session;
       session = nullptr;
+      stats_period = 0;
       if (report_callback != nullptr) {
         timer.cancel_event(report_callback);
         report_callback = nullptr;