[#6445] Allow for overriding timestamps used for optimistic locking
This commit is contained in:
parent
9817372127
commit
338a308bdb
@ -313,7 +313,12 @@ public class TableRecordImpl<R extends TableRecord<R>> extends AbstractRecord im
|
||||
if (timestamp != null) {
|
||||
|
||||
// Use Timestamp locally, to provide maximum precision
|
||||
result = new Timestamp(System.currentTimeMillis());
|
||||
|
||||
|
||||
|
||||
|
||||
result = new Timestamp(configuration().clock().millis());
|
||||
|
||||
addValue(store, timestamp, result);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user