From 8e996d2777cd031861620543a4bdc2edf35b43f4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 28 Aug 2009 13:20:08 -0700 Subject: [PATCH] mon: don't delay mount/umount paxos commits --- src/mon/ClientMonitor.cc | 6 ++++++ src/mon/ClientMonitor.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/mon/ClientMonitor.cc b/src/mon/ClientMonitor.cc index 3d3642f6d129a..f5374d26346be 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 dbfa499bda79a..8c88bbecc7ff6 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) { } -- 2.39.5