mirror of https://github.com/apache/lucene.git
print codec when IW.infoStream is enabled
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@980398 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
04cdd6c249
commit
747a1c2d8f
|
@ -3341,6 +3341,9 @@ public class IndexWriter implements Closeable {
|
||||||
docWriter.hasProx(),
|
docWriter.hasProx(),
|
||||||
docWriter.getCodec());
|
docWriter.getCodec());
|
||||||
|
|
||||||
|
if (infoStream != null) {
|
||||||
|
message("flush codec=" + docWriter.getCodec().name);
|
||||||
|
}
|
||||||
setDiagnostics(newSegment, "flush");
|
setDiagnostics(newSegment, "flush");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3642,7 +3645,7 @@ public class IndexWriter implements Closeable {
|
||||||
} catch (OutOfMemoryError oom) {
|
} catch (OutOfMemoryError oom) {
|
||||||
handleOOM(oom, "merge");
|
handleOOM(oom, "merge");
|
||||||
}
|
}
|
||||||
if (infoStream != null) {
|
if (infoStream != null && merge.info != null) {
|
||||||
message("merge time " + (System.currentTimeMillis()-t0) + " msec for " + merge.info.docCount + " docs");
|
message("merge time " + (System.currentTimeMillis()-t0) + " msec for " + merge.info.docCount + " docs");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4026,6 +4029,10 @@ public class IndexWriter implements Closeable {
|
||||||
// Record which codec was used to write the segment
|
// Record which codec was used to write the segment
|
||||||
merge.info.setCodec(merger.getCodec());
|
merge.info.setCodec(merger.getCodec());
|
||||||
|
|
||||||
|
if (infoStream != null) {
|
||||||
|
message("merge codec=" + merger.getCodec().name);
|
||||||
|
}
|
||||||
|
|
||||||
assert mergedDocCount == totDocCount;
|
assert mergedDocCount == totDocCount;
|
||||||
|
|
||||||
// Very important to do this before opening the reader
|
// Very important to do this before opening the reader
|
||||||
|
|
Loading…
Reference in New Issue