ReadOnlyEngine assertion fix (#41842)

Fixed the assertion that maxSeqNo == globalCheckpoint to actually check
against the global checkpoint.
This commit is contained in:
Henning Andersen 2019-05-06 16:06:51 +02:00 committed by Henning Andersen
parent 2455295c6d
commit 227d5e15fb
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ public class ReadOnlyEngine extends Engine {
+ "] from last commit does not match global checkpoint [" + seqNoStats.getGlobalCheckpoint() + "]"); + "] from last commit does not match global checkpoint [" + seqNoStats.getGlobalCheckpoint() + "]");
} }
} }
assert assertMaxSeqNoEqualsToGlobalCheckpoint(seqNoStats.getMaxSeqNo(), seqNoStats.getMaxSeqNo()); assert assertMaxSeqNoEqualsToGlobalCheckpoint(seqNoStats.getMaxSeqNo(), seqNoStats.getGlobalCheckpoint());
} }
protected boolean assertMaxSeqNoEqualsToGlobalCheckpoint(final long maxSeqNo, final long globalCheckpoint) { protected boolean assertMaxSeqNoEqualsToGlobalCheckpoint(final long maxSeqNo, final long globalCheckpoint) {