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:
Michael McCandless 2010-11-13 14:23:53 +00:00
parent 0485fd6351
commit 5f4872152d
1 changed files with 1 additions and 1 deletions

View File

@ -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 */