mirror of https://github.com/apache/lucene.git
LUCENE-1323: fix MultiReader to make a private copy of the subReaders array
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@673103 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4f7ead8112
commit
ebf4625870
|
@ -67,7 +67,7 @@ public class MultiReader extends IndexReader {
|
|||
}
|
||||
|
||||
private void initialize(IndexReader[] subReaders, boolean closeSubReaders) {
|
||||
this.subReaders = subReaders;
|
||||
this.subReaders = (IndexReader[]) subReaders.clone();
|
||||
starts = new int[subReaders.length + 1]; // build starts array
|
||||
decrefOnClose = new boolean[subReaders.length];
|
||||
for (int i = 0; i < subReaders.length; i++) {
|
||||
|
|
Loading…
Reference in New Issue