mirror of https://github.com/apache/lucene.git
add infoStream output to match 3.x
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1151212 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
25477c33ba
commit
25b732e392
|
@ -455,6 +455,9 @@ final class DocumentsWriter {
|
|||
final double ramBufferSizeMB = indexWriter.getConfig().getRAMBufferSizeMB();
|
||||
if (ramBufferSizeMB != IndexWriterConfig.DISABLE_AUTO_FLUSH &&
|
||||
flushControl.getDeleteBytesUsed() > (1024*1024*ramBufferSizeMB/2)) {
|
||||
if (infoStream != null) {
|
||||
message("force apply deletes bytesUsed=" + flushControl.getDeleteBytesUsed() + " vs ramBuffer=" + (1024*1024*ramBufferSizeMB));
|
||||
}
|
||||
applyAllDeletes(deleteQueue);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue