lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Busch <busch...@gmail.com>
Subject Re: index reopen question
Date Sat, 12 Apr 2008 00:57:01 GMT
Chris Hostetter wrote:
> : 1)  looking at the code:
> : 
> :     if (this.hasChanges || this.isCurrent()) {
> :       // the index hasn't changed - nothing to do here
> :       return this;
> :     }
> 
> :    Shouldn't it be !this.hasChanges?
> 
> ...that's from DirectoryIndexReader, and it sure looks like a bug to me.
> 

I don't think this is a bug. If hasChanges==true, then this reader has 
the write lock on the index directory and must be up to date.

-Michael

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message