mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mon: mdsmon: tick() from on_active() instead of committed()
Same effect, and avoids useless committed(). Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
becfce356c
commit
b521710f10
@ -474,6 +474,10 @@ void MDSMonitor::_updated(MMDSBeacon *m)
|
||||
|
||||
|
||||
void MDSMonitor::committed()
|
||||
{
|
||||
}
|
||||
|
||||
void MDSMonitor::on_active()
|
||||
{
|
||||
tick();
|
||||
}
|
||||
|
@ -78,6 +78,7 @@ class MDSMonitor : public PaxosService {
|
||||
bool should_propose(double& delay);
|
||||
|
||||
void committed();
|
||||
void on_active();
|
||||
|
||||
void _note_beacon(class MMDSBeacon *m);
|
||||
bool preprocess_beacon(class MMDSBeacon *m);
|
||||
|
@ -195,7 +195,8 @@ void PaxosService::_active()
|
||||
}
|
||||
}
|
||||
|
||||
on_active();
|
||||
if (paxos->is_active())
|
||||
on_active();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user