(reverse-index) Don't always POST

This commit is contained in:
Viktor Lofgren 2023-10-14 16:48:29 +02:00
parent 6308a8dfcd
commit 9e26109e36

View File

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