mirror of https://github.com/apache/lucene.git
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:
parent
10e6ceac5d
commit
e817cfce3a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue