mirror of https://github.com/apache/lucene.git
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:
parent
400639f54e
commit
1d842018fc
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue