LUCENE-3077: DWPT doesn't see changes to DW#infoStream

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1100896 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2011-05-09 06:41:09 +00:00
parent 400639f54e
commit 1d842018fc
2 changed files with 7 additions and 2 deletions

View File

@ -188,7 +188,7 @@ final class DocumentsWriter {
this.infoStream = infoStream;
final Iterator<ThreadState> it = perThreadPool.getAllPerThreadsIterator();
while (it.hasNext()) {
it.next().perThread.docState.infoStream = infoStream;
it.next().perThread.setInfoStream(infoStream);
}
}

View File

@ -163,7 +163,7 @@ public class DocumentsWriterPerThread {
boolean hasAborted = false; // True if the last exception throws by #updateDocument was aborting
private FieldInfos fieldInfos;
private final PrintStream infoStream;
private PrintStream infoStream;
private int numDocsInRAM;
private int flushedDocCount;
DocumentsWriterDeleteQueue deleteQueue;
@ -493,4 +493,9 @@ public class DocumentsWriterPerThread {
}
};
void setInfoStream(PrintStream infoStream) {
this.infoStream = infoStream;
docState.infoStream = infoStream;
}
}