make RandomMergePolicy log what MP it is wrapping

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1514815 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2013-08-16 17:41:44 +00:00
parent 3c1ab20726
commit d9ad5bfb76
1 changed files with 7 additions and 0 deletions

View File

@ -21,6 +21,9 @@ import org.apache.lucene.index.*;
import org.apache.lucene.index.MergePolicy.MergeSpecification;
import org.apache.lucene.util.LuceneTestCase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Map;
import java.io.IOException;
@ -32,6 +35,8 @@ import java.io.IOException;
*/
public final class RandomMergePolicy extends MergePolicy {
public static Logger log = LoggerFactory.getLogger(RandomMergePolicy.class);
/**
* Not private so tests can inspect it,
* Not final so it can be set on clone
@ -45,6 +50,8 @@ public final class RandomMergePolicy extends MergePolicy {
super(inner.getNoCFSRatio(),
(long) (inner.getMaxCFSSegmentSizeMB() * 1024 * 1024));
this.inner = inner;
log.info("RandomMergePolicy wrapping {}: {}",
inner.getClass(), inner);
}
public RandomMergePolicy clone() {