mirror of https://github.com/apache/lucene.git
LUCENE-1584: add hook that's called on successful merge
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@783588 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5509306e40
commit
5b654095c6
|
@ -4426,6 +4426,7 @@ public class IndexWriter {
|
|||
message("now merge\n merge=" + merge.segString(directory) + "\n merge=" + merge + "\n index=" + segString());
|
||||
|
||||
mergeMiddle(merge);
|
||||
mergeSuccess(merge);
|
||||
success = true;
|
||||
} catch (Throwable t) {
|
||||
handleMergeException(t, merge);
|
||||
|
@ -4453,6 +4454,10 @@ public class IndexWriter {
|
|||
}
|
||||
}
|
||||
|
||||
/** Hook that's called when the specified merge is complete. */
|
||||
void mergeSuccess(MergePolicy.OneMerge merge) {
|
||||
}
|
||||
|
||||
/** Checks whether this merge involves any segments
|
||||
* already participating in a merge. If not, this merge
|
||||
* is "registered", meaning we record that its segments
|
||||
|
|
Loading…
Reference in New Issue