From 360051ec49ddfae7cd3985b37c5cd29be6001a20 Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Sat, 12 Apr 2008 02:25:54 +0000 Subject: [PATCH] clarify slightly confusing comment git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@647364 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/index/DirectoryIndexReader.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/lucene/index/DirectoryIndexReader.java b/src/java/org/apache/lucene/index/DirectoryIndexReader.java index d7de8c044f4..eba01233c02 100644 --- a/src/java/org/apache/lucene/index/DirectoryIndexReader.java +++ b/src/java/org/apache/lucene/index/DirectoryIndexReader.java @@ -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; }