summaryrefslogtreecommitdiff
path: root/same/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'same/src/main/java')
-rw-r--r--same/src/main/java/com/orbekk/paxos/MasterProposer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/same/src/main/java/com/orbekk/paxos/MasterProposer.java b/same/src/main/java/com/orbekk/paxos/MasterProposer.java
index bc4f18d..048995e 100644
--- a/same/src/main/java/com/orbekk/paxos/MasterProposer.java
+++ b/same/src/main/java/com/orbekk/paxos/MasterProposer.java
@@ -66,7 +66,7 @@ public class MasterProposer extends Thread {
private void checkDone() {
if (done.getCount() > 0) {
- if (numPromises.get() >= numRequests / 2) {
+ if (numPromises.get() > numRequests / 2) {
result.set(proposalNumber);
done.countDown();
} else if (numResponses.get() >= numRequests) {