Use Long.MAX_VALUE to indicate that there has not yet been any modifications
Relates to #14275
This commit is contained in:
parent
a2e3dc59d8
commit
3b82b585f3
|
@ -80,7 +80,7 @@ public abstract class Engine implements Closeable {
|
|||
protected final ReleasableLock readLock = new ReleasableLock(rwl.readLock());
|
||||
protected final ReleasableLock writeLock = new ReleasableLock(rwl.writeLock());
|
||||
protected volatile Throwable failedEngine = null;
|
||||
protected volatile long lastWriteNanos;
|
||||
protected volatile long lastWriteNanos = Long.MAX_VALUE; // no write yet!
|
||||
|
||||
protected Engine(EngineConfig engineConfig) {
|
||||
Objects.requireNonNull(engineConfig.getStore(), "Store must be provided to the engine");
|
||||
|
|
Loading…
Reference in New Issue