delete m;
}
-void ClientMonitor::_unmounted(MClientUnmount *m)
-{
- dout(10) << "_unmounted " << m->get_orig_source_inst() << dendl;
-
- // reply with (same) unmount message
- mon->messenger->send_message(m, m->get_orig_source_inst());
-
- // auto-shutdown?
- // (hack for fakesyn/newsyn, mostly)
- if (mon->is_leader() &&
- client_map.version > 1 &&
- client_map.client_info.empty() &&
- g_conf.mon_stop_on_last_unmount &&
- !mon->is_stopping()) {
- dout(1) << "last client unmounted" << dendl;
- mon->stop_cluster();
- }
-}
-
-
+ bool ClientMonitor::should_propose(double& delay)
+ {
+ return true; // never delay! we want fast mounts!
+ }
+
void ClientMonitor::tick()
{
if (!paxos->is_active()) return;