mirror of https://github.com/apache/lucene.git
LUCENE-6098: change to a hard check
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1643591 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
df4a217d15
commit
f75d3c5dc4
|
@ -4253,7 +4253,9 @@ public class IndexWriter implements Closeable, TwoPhaseCommit, Accountable {
|
|||
|
||||
synchronized(this) {
|
||||
|
||||
assert lastCommitChangeCount <= changeCount: "lastCommitChangeCount=" + lastCommitChangeCount + " changeCount=" + changeCount;
|
||||
if (lastCommitChangeCount > changeCount) {
|
||||
throw new IllegalStateException("lastCommitChangeCount=" + lastCommitChangeCount + ",changeCount=" + changeCount);
|
||||
}
|
||||
|
||||
if (pendingCommitChangeCount == lastCommitChangeCount) {
|
||||
if (infoStream.isEnabled("IW")) {
|
||||
|
|
Loading…
Reference in New Issue