File tree 1 file changed +5
-2
lines changed
tephra-core/src/main/java/org/apache/tephra/util
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,13 @@ public static long getMaxVisibleTimestamp(Transaction tx) {
124
124
* as being written by this transaction (and therefore visible).
125
125
*/
126
126
public static Transaction createDummyTransaction (TransactionVisibilityState txVisibilityState ) {
127
- return new Transaction (txVisibilityState .getReadPointer (), txVisibilityState .getWritePointer (),
127
+ return new Transaction (txVisibilityState .getReadPointer (),
128
+ txVisibilityState .getVisibilityUpperBound (),
129
+ Long .MAX_VALUE ,
128
130
Longs .toArray (txVisibilityState .getInvalid ()),
129
131
Longs .toArray (txVisibilityState .getInProgress ().keySet ()),
130
- TxUtils .getFirstShortInProgress (txVisibilityState .getInProgress ()), TransactionType .SHORT );
132
+ TxUtils .getFirstShortInProgress (txVisibilityState .getInProgress ()), TransactionType .SHORT ,
133
+ new long [0 ], Transaction .VisibilityLevel .SNAPSHOT );
131
134
}
132
135
133
136
/**
You can’t perform that action at this time.
0 commit comments