const std::string SERVICE_DAEMON_MIRROR_ENABLE_FAILED_KEY("mirroring_failed");
-class SafeTimerSingleton : public SafeTimer {
+class SafeTimerSingleton : public CommonSafeTimer<ceph::mutex> {
public:
ceph::mutex timer_lock = ceph::make_mutex("cephfs::mirror::timer_lock");
{
std::scoped_lock locker(m_lock);
m_thread_pool->stop();
- m_cluster_watcher.reset();
}
}
void Mirror::shutdown() {
dout(20) << dendl;
m_stopping = true;
+ m_cluster_watcher->shutdown();
m_cond.notify_all();
}