Skip to content

Commit

Permalink
Fix reference to new CleanedTransactionReport msg
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomezferro committed Nov 23, 2012
1 parent 062702a commit 12d2337
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/yahoo/omid/client/TSOClient.java
Expand Up @@ -56,6 +56,7 @@
import com.yahoo.omid.tso.TSOMessage;
import com.yahoo.omid.tso.messages.AbortRequest;
import com.yahoo.omid.tso.messages.AbortedTransactionReport;
import com.yahoo.omid.tso.messages.CleanedTransactionReport;
import com.yahoo.omid.tso.messages.CommitQueryRequest;
import com.yahoo.omid.tso.messages.CommitQueryResponse;
import com.yahoo.omid.tso.messages.CommitRequest;
Expand Down Expand Up @@ -547,8 +548,8 @@ public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {
} else if (msg instanceof CommittedTransactionReport) {
CommittedTransactionReport ctr = (CommittedTransactionReport) msg;
committed.commit(ctr.startTimestamp, ctr.commitTimestamp);
} else if (msg instanceof FullAbortRequest) {
FullAbortRequest r = (FullAbortRequest) msg;
} else if (msg instanceof CleanedTransactionReport) {
CleanedTransactionReport r = (CleanedTransactionReport) msg;
aborted.remove(r.startTimestamp);
} else if (msg instanceof AbortedTransactionReport) {
AbortedTransactionReport r = (AbortedTransactionReport) msg;
Expand Down

0 comments on commit 12d2337

Please sign in to comment.