]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: don't delay mount/umount paxos commits
authorSage Weil <sage@newdream.net>
Fri, 28 Aug 2009 20:20:08 +0000 (13:20 -0700)
committerSage Weil <sage@newdream.net>
Fri, 28 Aug 2009 21:47:51 +0000 (14:47 -0700)
src/mon/ClientMonitor.cc
src/mon/ClientMonitor.h

index 3d3642f6d129a4090451169eeecc0152df39b8f3..f5374d26346bef00d3f974076eb47f00038b6f2b 100644 (file)
@@ -366,6 +366,12 @@ void ClientMonitor::_unmounted(MClientUnmount *m)
   }
 }
 
+
+bool ClientMonitor::should_propose(double& delay)
+{
+  return true;  // never delay!  we want fast mounts!
+}
+
 void ClientMonitor::tick()
 {
   if (!paxos->is_active()) return;
index dbfa499bda79ab29e0b61ddb4706af7418272f3f..8c88bbecc7ff6bb31fa67acd46d18c204e39db84 100644 (file)
@@ -93,6 +93,8 @@ private:
   bool preprocess_command(MMonCommand *m);  // true if processed.
   bool prepare_command(MMonCommand *m);
 
+  bool should_propose(double& delay);
+
  public:
   ClientMonitor(Monitor *mn, Paxos *p) : PaxosService(mn, p) { }