From: Sage Weil Date: Wed, 2 Sep 2009 23:13:14 +0000 (-0700) Subject: Merge commit 'origin/unstable' into msgr X-Git-Tag: v0.14~52 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=829ed7d772ac754b0368cc0499c12055406c2b7a;p=ceph.git Merge commit 'origin/unstable' into msgr Conflicts: src/mon/ClientMonitor.cc --- 829ed7d772ac754b0368cc0499c12055406c2b7a diff --cc src/mon/ClientMonitor.cc index 3fe2b985b09,f5374d26346..aa39c302703 --- a/src/mon/ClientMonitor.cc +++ b/src/mon/ClientMonitor.cc @@@ -247,6 -347,31 +247,11 @@@ void ClientMonitor::_mounted(__s64 clie 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;