LUCENE-710: make IndexWriter.abort() synchronized

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@518781 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2007-03-15 22:22:57 +00:00
parent 40093328ca
commit b5a0c0c3de
1 changed files with 1 additions and 1 deletions

View File

@ -1269,7 +1269,7 @@ public class IndexWriter {
* the writer was opened with <code>autoCommit=true</code>. * the writer was opened with <code>autoCommit=true</code>.
* @throws IOException if there is a low-level IO error * @throws IOException if there is a low-level IO error
*/ */
public void abort() throws IOException { public synchronized void abort() throws IOException {
ensureOpen(); ensureOpen();
if (!autoCommit) { if (!autoCommit) {