mirror of https://github.com/apache/lucene.git
LUCENE-6355: also log time to write FieldInfos during merge to IW's infoStream
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1666741 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fd86381062
commit
97d1f28b62
|
@ -59,6 +59,9 @@ New Features
|
||||||
|
|
||||||
* LUCENE-6341: Add a -fast option to CheckIndex. (Robert Muir)
|
* LUCENE-6341: Add a -fast option to CheckIndex. (Robert Muir)
|
||||||
|
|
||||||
|
* LUCENE-6355: IndexWriter's infoStream now also logs time to write FieldInfos
|
||||||
|
during merge (Lee Hinman via Mike McCandless)
|
||||||
|
|
||||||
Bug Fixes
|
Bug Fixes
|
||||||
|
|
||||||
* LUCENE-6249: StandardQueryParser doesn't support pure negative clauses.
|
* LUCENE-6249: StandardQueryParser doesn't support pure negative clauses.
|
||||||
|
|
|
@ -133,7 +133,14 @@ final class SegmentMerger {
|
||||||
}
|
}
|
||||||
|
|
||||||
// write the merged infos
|
// write the merged infos
|
||||||
|
if (mergeState.infoStream.isEnabled("SM")) {
|
||||||
|
t0 = System.nanoTime();
|
||||||
|
}
|
||||||
codec.fieldInfosFormat().write(directory, mergeState.segmentInfo, "", mergeState.mergeFieldInfos, context);
|
codec.fieldInfosFormat().write(directory, mergeState.segmentInfo, "", mergeState.mergeFieldInfos, context);
|
||||||
|
if (mergeState.infoStream.isEnabled("SM")) {
|
||||||
|
long t1 = System.nanoTime();
|
||||||
|
mergeState.infoStream.message("SM", ((t1-t0)/1000000) + " msec to write field infos [" + numMerged + " docs]");
|
||||||
|
}
|
||||||
|
|
||||||
return mergeState;
|
return mergeState;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue