slow-J commented on code in PR #12797: URL: https://github.com/apache/lucene/pull/12797#discussion_r1400997736
########## lucene/core/src/java/org/apache/lucene/index/CheckIndex.java: ########## @@ -442,19 +442,19 @@ public void close() throws IOException { IOUtils.close(writeLock); } - private boolean doSlowChecks; + private int level; /** - * If true, additional slow checks are performed. This will likely drastically increase time it - * takes to run CheckIndex! + * Sets Level, the higher the value, the more additional checks are performed. This will likely + * drastically increase time it takes to run CheckIndex! See {@link Level} */ - public void setDoSlowChecks(boolean v) { - doSlowChecks = v; + public void setLevel(int v) { + level = v; Review Comment: We do `throw IllegalArgumentException` if the input is below or above the limit :) edit: see what you meant in a comment below, I now throw the exception from here too. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org