mon: don't delay mount/umount paxos commits

This commit is contained in:
Sage Weil 2009-08-28 13:20:08 -07:00
parent 3dd1c4d7cd
commit 8e996d2777
2 changed files with 8 additions and 0 deletions

View 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;

View 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) { }