Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Synchronize paxos client

  • Loading branch information...
commit 6ae75bb61c4414393ca468b4c23e2213b9ef180c 1 parent 2059524
@dgomezferro authored
View
4 src/main/java/com/yahoo/pasc/paxos/client/PaxosClientHandler.java
@@ -139,7 +139,7 @@ public void run() {
}
@Override
- public void submitNewRequest(byte[] request) {
+ public synchronized void submitNewRequest(byte[] request) {
if (resubmit != null)
resubmit.cancel();
List<Message> messages = runtime.handleMessage(new Submit(request));
@@ -160,7 +160,7 @@ public void submitNewRequest(byte[] request) {
}
@Override
- public void submitControlMessage(byte[] controlMessage) {
+ public synchronized void submitControlMessage(byte[] controlMessage) {
ControlMessage cm = new ControlMessage(clientId, controlMessage);
cm.storeReplica(cm);
send(cm);
Please sign in to comment.
Something went wrong with that request. Please try again.