lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r647364 - /lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryIndexReader.java
Date Sat, 12 Apr 2008 02:25:59 GMT
Author: hossman
Date: Fri Apr 11 19:25:54 2008
New Revision: 647364

URL: http://svn.apache.org/viewvc?rev=647364&view=rev
Log:
clarify slightly confusing comment

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

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryIndexReader.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryIndexReader.java?rev=647364&r1=647363&r2=647364&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryIndexReader.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/DirectoryIndexReader.java Fri Apr 11
19:25:54 2008
@@ -102,7 +102,8 @@
     ensureOpen();
 
     if (this.hasChanges || this.isCurrent()) {
-      // the index hasn't changed - nothing to do here
+      // this has changes, therefore we have the lock and don't need to reopen
+      // OR: the index in the directory hasn't changed - nothing to do here
       return this;
     }
 



Mime
View raw message