]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
paxos: store stashed state _and_ incrementals
authorSage Weil <sage@newdream.net>
Thu, 17 Nov 2011 22:10:34 +0000 (14:10 -0800)
committerSage Weil <sage@newdream.net>
Thu, 17 Nov 2011 22:10:34 +0000 (14:10 -0800)
Paxos::share_state() may share a stashed state and incrementals that
follow; we need to store the same.

Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/Paxos.cc

index 05a00038e4e8aaf3692f65e1a6e39b2eb8fef9fd..0a68fb0537b5224f167e382cf3191a0ffc5d3c62 100644 (file)
@@ -199,7 +199,6 @@ void Paxos::store_state(MMonPaxos *m)
     first_committed = last_committed;
     mon->store->put_int(first_committed, machine_name, "first_committed");
     mon->store->put_int(last_committed, machine_name, "last_committed");
-    return;
   }
 
   // build map of values to store