diff --git a/src/mon/ClientMonitor.cc b/src/mon/ClientMonitor.cc index 3d3642f6d12..f5374d26346 100644 --- a/src/mon/ClientMonitor.cc +++ b/src/mon/ClientMonitor.cc @@ -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; diff --git a/src/mon/ClientMonitor.h b/src/mon/ClientMonitor.h index dbfa499bda7..8c88bbecc7f 100644 --- a/src/mon/ClientMonitor.h +++ b/src/mon/ClientMonitor.h @@ -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) { }