void OSDService::shutdown()
{
+ mono_timer.suspend();
+
{
std::lock_guard l(watch_lock);
watch_timer.shutdown();
watch_timer.init();
agent_timer.init();
+ mono_timer.resume();
agent_thread.create("osd_srv_agent");
#include "common/ceph_context.h"
#include "common/config_cacher.h"
#include "common/zipkin_trace.h"
+#include "common/ceph_timer.h"
#include "mgr/MgrClient.h"
/// get or create a ref for a peer's HeartbeatStamps
HeartbeatStampsRef get_hb_stamps(unsigned osd);
+
+ // Timer for readable leases
+ ceph::timer<ceph::mono_clock> mono_timer = ceph::timer<ceph::mono_clock>{ceph::construct_suspended};
+
// -- stopping --
ceph::mutex is_stopping_lock = ceph::make_mutex("OSDService::is_stopping_lock");
ceph::condition_variable is_stopping_cond;