LUCENE-2043: CommitIndexTask also commits pending changes in the open IndexReader

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@833764 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-11-07 21:12:12 +00:00
parent 10e6ceac5d
commit e817cfce3a
1 changed files with 1 additions and 1 deletions

View File

@ -975,7 +975,7 @@ public abstract class IndexReader implements Cloneable,Closeable {
* (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);
}