lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: Is close() correct?
Date Thu, 25 Jun 2009 19:51:23 GMT
On Thu, Jun 25, 2009 at 3:34 PM, Shai Erera<serera@gmail.com> wrote:

> Doesn't reopen increase the refCount already? why do you call incRef()?

If you get the same reader back, the refCount is unchanged.  If you
get a new reader back, it returns a reference (ie, refCount is 1).

Mike

---------------------------------------------------------------------
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