Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Reset ReplyStore on submit, not on message delivery (reception)

  • Loading branch information...
commit b4685bc399316271bd8fc658ddfff26ea90fe291 1 parent 32de19c
Daniel Gómez Ferro dgomezferro authored
1  src/main/java/com/yahoo/pasc/paxos/client/handlers/ReplyHandler.java
@@ -53,7 +53,6 @@ public boolean guardPredicate(Reply receivedMessage) {
53 53 byte[] value = store.getStableReply(quorum);
54 54 if (value != null) {
55 55 descriptors = Arrays.asList(new Received.Descriptor(value));
56   - state.setReplyStore(new ReplyStore(state.getServers()));
57 56 }
58 57 }
59 58 return descriptors;
2  src/main/java/com/yahoo/pasc/paxos/client/handlers/SubmitHandler.java
@@ -22,6 +22,7 @@
22 22 import com.yahoo.pasc.Message;
23 23 import com.yahoo.pasc.MessageHandler;
24 24 import com.yahoo.pasc.paxos.client.ClientState;
  25 +import com.yahoo.pasc.paxos.client.ReplyStore;
25 26 import com.yahoo.pasc.paxos.client.messages.Submit;
26 27 import com.yahoo.pasc.paxos.messages.InlineRequest;
27 28 import com.yahoo.pasc.paxos.messages.Request;
@@ -45,6 +46,7 @@ public boolean guardPredicate(Submit receivedMessage) {
45 46 }
46 47 state.setPendingRequest(request);
47 48 state.setTimestamp(timestamp);
  49 + state.setReplyStore(new ReplyStore(state.getServers()));
48 50 return Arrays.asList(request);
49 51 }
50 52

0 comments on commit b4685bc

Please sign in to comment.
Something went wrong with that request. Please try again.