Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "tsoclient removed from TransactionState because is not used".…

… In fact it is used but without accessor methods!!! :-)

This reverts commit ae2338c.
  • Loading branch information...
commit b8fa32d3b2c336488cbf079e2240b6cfb6d5b6d4 1 parent c4bab10
Francisco Perez-Sorrosal authored
View
2  src/main/java/com/yahoo/omid/client/TransactionManager.java
@@ -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);
}
/**
View
3  src/main/java/com/yahoo/omid/client/TransactionState.java
@@ -32,10 +32,11 @@
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() {
Please sign in to comment.
Something went wrong with that request. Please try again.