You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by mi...@apache.org on 2009/11/07 22:12:12 UTC

svn commit: r833764 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java

Author: mikemccand
Date: Sat Nov  7 21:12:12 2009
New Revision: 833764

URL: http://svn.apache.org/viewvc?rev=833764&view=rev
Log:
LUCENE-2043: CommitIndexTask also commits pending changes in the open IndexReader

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java?rev=833764&r1=833763&r2=833764&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java Sat Nov  7 21:12:12 2009
@@ -975,7 +975,7 @@
    * (transactional semantics).
    * @throws IOException if there is a low-level IO error
    */
-  protected final synchronized void commit(Map<String, String> commitUserData) throws IOException {
+  public final synchronized void commit(Map<String, String> commitUserData) throws IOException {
     if (hasChanges) {
       doCommit(commitUserData);
     }