From: songbaisen Date: Fri, 25 Mar 2016 09:38:31 +0000 (+0800) Subject: mon: paxos small optimization on store_state X-Git-Tag: v11.0.0~515^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=089aef05125cdde56d6cf0d53d8e5797b0bfbac2;p=ceph.git mon: paxos small optimization on store_state Signed-off-by: song baisen song.baisen@zte.com.cn --- diff --git a/src/mon/Paxos.cc b/src/mon/Paxos.cc index 52b0bda43c3..1ce50416050 100644 --- a/src/mon/Paxos.cc +++ b/src/mon/Paxos.cc @@ -357,7 +357,7 @@ bool Paxos::store_state(MMonPaxos *m) // ignore everything if values start in the future. dout(10) << "store_state ignoring all values, they start at " << start->first << " > last_committed+1" << dendl; - start = m->values.end(); + return false; } // push forward the start position on the message's values iterator, up until