mirror of https://github.com/apache/lucene.git
Log MockRandomMergePolicy reverse in verbose. (#13117)
This commit is contained in:
parent
6764a01805
commit
90e4c44b99
|
@ -241,6 +241,9 @@ public class MockRandomMergePolicy extends MergePolicy {
|
||||||
@Override
|
@Override
|
||||||
public Sorter.DocMap reorder(CodecReader reader, Directory dir) throws IOException {
|
public Sorter.DocMap reorder(CodecReader reader, Directory dir) throws IOException {
|
||||||
if (r.nextBoolean()) {
|
if (r.nextBoolean()) {
|
||||||
|
if (LuceneTestCase.VERBOSE) {
|
||||||
|
System.out.println("NOTE: MockRandomMergePolicy now reverses reader=" + reader);
|
||||||
|
}
|
||||||
// Reverse the doc ID order
|
// Reverse the doc ID order
|
||||||
final int maxDoc = reader.maxDoc();
|
final int maxDoc = reader.maxDoc();
|
||||||
return new Sorter.DocMap() {
|
return new Sorter.DocMap() {
|
||||||
|
|
Loading…
Reference in New Issue