(reverse-index) Don't always POST
This commit is contained in:
parent
6308a8dfcd
commit
9e26109e36
@ -43,9 +43,11 @@ public class ReverseIndexReader {
|
|||||||
wordsDataOffset = wordsBTreeReader.getHeader().dataOffsetLongs();
|
wordsDataOffset = wordsBTreeReader.getHeader().dataOffsetLongs();
|
||||||
|
|
||||||
if (getClass().desiredAssertionStatus()) {
|
if (getClass().desiredAssertionStatus()) {
|
||||||
|
if (Boolean.getBoolean("index-self-test")) {
|
||||||
Executors.newSingleThreadExecutor().execute(this::selfTest);
|
Executors.newSingleThreadExecutor().execute(this::selfTest);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void selfTest() {
|
private void selfTest() {
|
||||||
logger.info("Running self test program");
|
logger.info("Running self test program");
|
||||||
|
Loading…
Reference in New Issue
Block a user