]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: paxos small optimization on store_state 8307/head
authorsongbaisen <song.baisen@zte.com.cn>
Fri, 25 Mar 2016 09:38:31 +0000 (17:38 +0800)
committersongbaisen <song.baisen@zte.com.cn>
Wed, 4 May 2016 01:54:03 +0000 (09:54 +0800)
Signed-off-by: song baisen song.baisen@zte.com.cn
src/mon/Paxos.cc

index 52b0bda43c36b6a5f55519a9c4ebe6f2a403daec..1ce5041605070495a2b842687f7e74e704cc7911 100644 (file)
@@ -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