lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r518781 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
Date Thu, 15 Mar 2007 22:22:57 GMT
Author: mikemccand
Date: Thu Mar 15 15:22:57 2007
New Revision: 518781

URL: http://svn.apache.org/viewvc?view=rev&rev=518781
Log:
LUCENE-710: make IndexWriter.abort() synchronized

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java?view=diff&rev=518781&r1=518780&r2=518781
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java Thu Mar 15 15:22:57
2007
@@ -1269,7 +1269,7 @@
    *  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) {
 



Mime
View raw message