]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: tick at OSD_TICK_INTERVAL, not heartbeat interval
authorSage Weil <sage@redhat.com>
Thu, 9 Aug 2018 13:22:05 +0000 (08:22 -0500)
committerSage Weil <sage@redhat.com>
Thu, 9 Aug 2018 13:22:05 +0000 (08:22 -0500)
Heartbeat inveral is not related!

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

index 86e06dd561995b1b6adca5fe686b617f5b7d02a8..db51ad153a32bf15aa65bd19c99c51fd0dda2a4c 100644 (file)
@@ -2606,10 +2606,12 @@ int OSD::init()
   heartbeat_thread.create("osd_srv_heartbt");
 
   // tick
-  tick_timer.add_event_after(cct->_conf->osd_heartbeat_interval, new C_Tick(this));
+  tick_timer.add_event_after(OSD_TICK_INTERVAL,
+                            new C_Tick(this));
   {
     Mutex::Locker l(tick_timer_lock);
-    tick_timer_without_osd_lock.add_event_after(cct->_conf->osd_heartbeat_interval, new C_Tick_WithoutOSDLock(this));
+    tick_timer_without_osd_lock.add_event_after(OSD_TICK_INTERVAL,
+                                               new C_Tick_WithoutOSDLock(this));
   }
 
   osd_lock.Unlock();
@@ -4875,7 +4877,8 @@ void OSD::tick_without_osd_lock()
 
   mgrc.update_daemon_health(get_health_metrics());
   service.kick_recovery_queue();
-  tick_timer_without_osd_lock.add_event_after(OSD_TICK_INTERVAL, new C_Tick_WithoutOSDLock(this));
+  tick_timer_without_osd_lock.add_event_after(OSD_TICK_INTERVAL,
+                                             new C_Tick_WithoutOSDLock(this));
 }
 
 // Usage: