lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From uschind...@apache.org
Subject svn commit: r830410 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java
Date Wed, 28 Oct 2009 00:16:48 GMT
Author: uschindler
Date: Wed Oct 28 00:16:48 2009
New Revision: 830410

URL: http://svn.apache.org/viewvc?rev=830410&view=rev
Log:
One more Thread.holdsLock(writer) assert...

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?rev=830410&r1=830409&r2=830410&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexWriter.java Wed Oct 28 00:16:48
2009
@@ -468,8 +468,7 @@
         // not pooling readers, we release it:
         readerMap.remove(sr.getSegmentInfo());
 
-        // TODO: java 5
-        // assert !sr.hasChanges || Thread.holdsLock(IndexWriter.this);
+        assert !sr.hasChanges || Thread.holdsLock(IndexWriter.this);
 
         // Drop our ref -- this will commit any pending
         // changes to the dir



Mime
View raw message