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:
Michael McCandless 2011-07-26 19:01:10 +00:00
parent 25477c33ba
commit 25b732e392
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}