From ee75196d49097374762d0224c6f91600254951e4 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 5 Dec 2008 14:00:59 -0800 Subject: [PATCH] mon: notify PaxosService of any paxos state changes --- src/mon/Monitor.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mon/Monitor.cc b/src/mon/Monitor.cc index 85b289ba1e272..636878056fdd0 100644 --- a/src/mon/Monitor.cc +++ b/src/mon/Monitor.cc @@ -389,7 +389,12 @@ bool Monitor::dispatch_impl(Message *m) // send it to the right paxos instance assert(pm->machine_id < PAXOS_NUM); - paxos[pm->machine_id]->dispatch(m); + Paxos *p = paxos[pm->machine_id]; + p->dispatch(m); + + // make sure service finds out about any state changes + if (p->is_active()) + paxos_service[pm->machine_id]->update_from_paxos(); } break; -- 2.39.5