Fix hidden bug in ReaderContextBuilder, as we never checked the context of a MultiReader

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1212831 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2011-12-10 18:06:57 +00:00
parent 39c2ae5268
commit 00e5695f20
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ public final class ReaderUtil {
int newDocBase = 0;
for (int i = 0; i < sequentialSubReaders.length; i++) {
build(newParent, sequentialSubReaders[i], i, newDocBase);
children[i] = build(newParent, sequentialSubReaders[i], i, newDocBase);
newDocBase += sequentialSubReaders[i].maxDoc();
}
return newParent;