mirror of https://github.com/apache/lucene.git
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:
parent
40093328ca
commit
b5a0c0c3de
|
@ -1269,7 +1269,7 @@ public class IndexWriter {
|
|||
* the writer was opened with <code>autoCommit=true</code>.
|
||||
* @throws IOException if there is a low-level IO error
|
||||
*/
|
||||
public void abort() throws IOException {
|
||||
public synchronized void abort() throws IOException {
|
||||
ensureOpen();
|
||||
if (!autoCommit) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue