Use Long.MAX_VALUE to indicate that there has not yet been any modifications

Relates to #14275
This commit is contained in:
Simon Willnauer 2015-10-26 12:30:23 +01:00
parent a2e3dc59d8
commit 3b82b585f3
1 changed files with 1 additions and 1 deletions

View File

@ -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");