LUCENE-3606: Fix one nocommit by removal :-)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene3606@1211705 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2011-12-07 23:29:26 +00:00
parent 13294b07cc
commit ba1306c296
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ class DirectoryReader extends IndexReader implements Cloneable {
readerShared[i] = false;
newReaders[i] = newReader;
} else {
newReader = newReaders[i].reopenSegment(infos.info(i), doClone, true /* nocommit: remove readOnly */);
newReader = newReaders[i].reopenSegment(infos.info(i), doClone, true);
if (newReader == null) {
// this reader will be shared between the old and the new one,
// so we must incRef it