mirror of https://github.com/apache/lucene.git
remove debug code
This commit is contained in:
parent
9524cc4233
commit
efcf75a546
|
@ -253,14 +253,13 @@ public abstract class MergePolicy {
|
|||
mergeProgress.setMergeThread(Thread.currentThread());
|
||||
}
|
||||
|
||||
private Exception originalClosed;
|
||||
/** Called by {@link IndexWriter} after the merge is done and all readers have been closed.
|
||||
* @param success true iff the merge finished successfully ie. was committed */
|
||||
public void mergeFinished(boolean success) throws IOException {
|
||||
mergeCompleted.complete(success);
|
||||
// https://issues.apache.org/jira/browse/LUCENE-9408
|
||||
// if (mergeCompleted.complete(success) == false) {
|
||||
// throw new IllegalStateException("merge has already finished", originalClosed);
|
||||
// throw new IllegalStateException("merge has already finished");
|
||||
// }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue