Skip to content

Commit

Permalink
Reset ReplyStore on submit, not on message delivery (reception)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomezferro committed Sep 28, 2012
1 parent 32de19c commit b4685bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public List<Received.Descriptor> processMessage(Reply reply, ClientState state)
byte[] value = store.getStableReply(quorum); byte[] value = store.getStableReply(quorum);
if (value != null) { if (value != null) {
descriptors = Arrays.asList(new Received.Descriptor(value)); descriptors = Arrays.asList(new Received.Descriptor(value));
state.setReplyStore(new ReplyStore(state.getServers()));
} }
} }
return descriptors; return descriptors;
Expand Down
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.yahoo.pasc.Message; import com.yahoo.pasc.Message;
import com.yahoo.pasc.MessageHandler; import com.yahoo.pasc.MessageHandler;
import com.yahoo.pasc.paxos.client.ClientState; import com.yahoo.pasc.paxos.client.ClientState;
import com.yahoo.pasc.paxos.client.ReplyStore;
import com.yahoo.pasc.paxos.client.messages.Submit; import com.yahoo.pasc.paxos.client.messages.Submit;
import com.yahoo.pasc.paxos.messages.InlineRequest; import com.yahoo.pasc.paxos.messages.InlineRequest;
import com.yahoo.pasc.paxos.messages.Request; import com.yahoo.pasc.paxos.messages.Request;
Expand All @@ -45,6 +46,7 @@ public List<Request> processMessage(Submit submit, ClientState state) {
} }
state.setPendingRequest(request); state.setPendingRequest(request);
state.setTimestamp(timestamp); state.setTimestamp(timestamp);
state.setReplyStore(new ReplyStore(state.getServers()));
return Arrays.asList(request); return Arrays.asList(request);
} }


Expand Down

0 comments on commit b4685bc

Please sign in to comment.