comparison 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
comparison
equal deleted inserted replaced
182:1559aa74dc74 183:1bffd8151c6a
22 System.out.println("accepted : " + acceptedProposal); 22 System.out.println("accepted : " + acceptedProposal);
23 acceptedMap.put(acceptedProposal.getAcceptorName(), 23 acceptedMap.put(acceptedProposal.getAcceptorName(),
24 acceptedProposal); 24 acceptedProposal);
25 put("acceptedMap", acceptedMap); 25 put("acceptedMap", acceptedMap);
26 if(acceptedMap.size() > acceptedProposal.getAcceptorNum()/2) cgm.setup(new AggregateProposalCodeGear()); 26 if(acceptedMap.size() > acceptedProposal.getAcceptorNum()/2) cgm.setup(new AggregateProposalCodeGear());
27 cgm.setup(new RecieveAcceptProposalCodeGear()); 27 else cgm.setup(new RecieveAcceptProposalCodeGear());
28 } 28 }
29 } 29 }