ReadOnlyEngine assertion fix (#41842)
Fixed the assertion that maxSeqNo == globalCheckpoint to actually check against the global checkpoint.
This commit is contained in:
parent
2455295c6d
commit
227d5e15fb
|
@ -137,7 +137,7 @@ public class ReadOnlyEngine extends Engine {
|
|||
+ "] 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) {
|
||||
|
|
Loading…
Reference in New Issue