lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r783588 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
Date Thu, 11 Jun 2009 00:21:52 GMT
Author: mikemccand
Date: Thu Jun 11 00:21:52 2009
New Revision: 783588

URL: http://svn.apache.org/viewvc?rev=783588&view=rev
Log:
LUCENE-1584: add hook that's called on successful merge

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java?rev=783588&r1=783587&r2=783588&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java Thu Jun 11 00:21:52
2009
@@ -4426,6 +4426,7 @@
             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 @@
     }
   }
 
+  /** 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



Mime
View raw message