Skip to content

Commit

Permalink
change to AtomicLong for lastPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
richhickey committed Dec 22, 2008
1 parent e7f5352 commit ef94567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jvm/clojure/lang/LockingTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.Callable;

@SuppressWarnings({"SynchronizeOnNonFinalField"})
Expand Down Expand Up @@ -66,7 +67,7 @@ public CFn(IFn fn, ISeq args){
}
//total order on transactions
//transactions will consume a point for init, for each retry, and on commit if writing
final private static AtomicInteger lastPoint = new AtomicInteger();
final private static AtomicLong lastPoint = new AtomicLong();

void getReadPoint(){
readPoint = lastPoint.incrementAndGet();
Expand Down

0 comments on commit ef94567

Please sign in to comment.