Skip to content

Commit

Permalink
ReadOnlyEngine assertion fix (#41842)
Browse files Browse the repository at this point in the history
Fixed the assertion that maxSeqNo == globalCheckpoint to actually check
against the global checkpoint.
  • Loading branch information
henningandersen committed May 6, 2019
1 parent 2455295 commit 227d5e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected void ensureMaxSeqNoEqualsToGlobalCheckpoint(final SeqNoStats seqNoStat
+ "] 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) {
Expand Down

0 comments on commit 227d5e1

Please sign in to comment.