]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
crimson/osd: cancel timers before restart
authorKefu Chai <kchai@redhat.com>
Fri, 15 Mar 2019 08:01:12 +0000 (16:01 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 20 Mar 2019 07:41:39 +0000 (15:41 +0800)
otherwise we will rearm already-armed timer when booting up OSD again.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/osd/osd.cc

index 20f66b26b53dd77f7182e6fbe16d0901a0970202..8d2e4e5ed04ba462569e481c8283503edffe8628 100644 (file)
@@ -613,6 +613,8 @@ bool OSD::should_restart() const
 
 seastar::future<> OSD::restart()
 {
+  beacon_timer.cancel();
+  heartbeat_timer.cancel();
   up_epoch = 0;
   bind_epoch = osdmap->get_epoch();
   // TODO: promote to shutdown if being marked down for multiple times