mirror of
https://github.com/ceph/ceph
synced 2024-12-13 23:17:07 +00:00
mon: don't delay mount/umount paxos commits
This commit is contained in:
parent
3dd1c4d7cd
commit
8e996d2777
@ -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;
|
||||
|
@ -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) { }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user