lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: simple question about decRef
Date Sat, 01 Jun 2013 16:56:49 GMT
Only call decRef if you previously called incRef.  They must match one for one.

Also, call close when you are done using the IndexReader.

If you fail to decRef or close then files will be held open and you'll
eventually exhaust the limit of open file descriptors.

Mike McCandless

http://blog.mikemccandless.com


On Fri, May 31, 2013 at 8:12 PM, Yonghui Zhao <zhaoyonghui@gmail.com> wrote:
> After we use IndexReader do we always need call decRef explicitly?
>
> What will happen, if I don't call decRef? Thanks
>
> Sent from my iPad
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>

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


Mime
View raw message