mirror of https://github.com/apache/lucene.git
clarify slightly confusing comment
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@647364 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
62cf2ecb7f
commit
360051ec49
|
@ -102,7 +102,8 @@ abstract class DirectoryIndexReader extends IndexReader {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue