diff src/main/java/christie/test/topology/paxos/learner/RecieveAcceptProposalCodeGear.java @ 183:1bffd8151c6a

fix paxos
author akahori
date Sat, 02 Feb 2019 15:19:20 +0900
parents 33b4966d4d24
children 149d7fb0cfa6
line wrap: on
line diff
--- a/src/main/java/christie/test/topology/paxos/learner/RecieveAcceptProposalCodeGear.java	Sat Feb 02 15:18:17 2019 +0900
+++ b/src/main/java/christie/test/topology/paxos/learner/RecieveAcceptProposalCodeGear.java	Sat Feb 02 15:19:20 2019 +0900
@@ -24,6 +24,6 @@
                         acceptedProposal);
         put("acceptedMap", acceptedMap);
         if(acceptedMap.size() > acceptedProposal.getAcceptorNum()/2) cgm.setup(new AggregateProposalCodeGear());
-        cgm.setup(new RecieveAcceptProposalCodeGear());
+        else cgm.setup(new RecieveAcceptProposalCodeGear());
     }
 }