Skip to content

Commit

Permalink
osd: tick at OSD_TICK_INTERVAL, not heartbeat interval
Browse files Browse the repository at this point in the history
Heartbeat inveral is not related!

Signed-off-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Aug 9, 2018
1 parent 4c513ea commit 7d76458
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/osd/OSD.cc
Expand Up @@ -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();
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 7d76458

Please sign in to comment.