Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

Commit

Permalink
Revert "tsoclient removed from TransactionState because is not used".…
Browse files Browse the repository at this point in the history
… In fact it is used but without accessor methods!!! :-)

This reverts commit ae2338c.
  • Loading branch information
francisco-perez-sorrosal committed Nov 28, 2012
1 parent c4bab10 commit b8fa32d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -75,7 +75,7 @@ public TransactionState beginTransaction() throws TransactionException {
throw new TransactionException("Error retrieving timestamp", cb.getException());
}

return new TransactionState(cb.getStartTimestamp());
return new TransactionState(cb.getStartTimestamp(), tsoclient);
}

/**
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/yahoo/omid/client/TransactionState.java
Expand Up @@ -32,10 +32,11 @@ public class TransactionState {

public TSOClient tsoclient;

TransactionState(long startTimestamp) {
TransactionState(long startTimestamp, TSOClient client) {
this.rows = new HashSet<RowKeyFamily>();
this.startTimestamp = startTimestamp;;
this.commitTimestamp = 0;
this.tsoclient = client;
}

public long getStartTimestamp() {
Expand Down

0 comments on commit b8fa32d

Please sign in to comment.