mirror of https://github.com/apache/lucene.git
don't mark merged reader with 'hasChanges' if delCount == 0
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1034763 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0485fd6351
commit
5f4872152d
|
@ -3549,7 +3549,7 @@ public class IndexWriter implements Closeable {
|
||||||
|
|
||||||
assert mergeReader.numDeletedDocs() == delCount;
|
assert mergeReader.numDeletedDocs() == delCount;
|
||||||
|
|
||||||
mergeReader.hasChanges = delCount >= 0;
|
mergeReader.hasChanges = delCount > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* FIXME if we want to support non-contiguous segment merges */
|
/* FIXME if we want to support non-contiguous segment merges */
|
||||||
|
|
Loading…
Reference in New Issue