[
https://issues.apache.org/jira/browse/LUCENE-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790360#action_12790360
]
Yonik Seeley commented on LUCENE-2156:
--------------------------------------
ensureOpen() is to help catch coding mistakes, not to act in a completely
deterministic way. It should be as light weight as possible so correct
programs aren't penalized.
> use AtomicInteger/Boolean to track IR.refCount and IW.closed
> ------------------------------------------------------------
>
> Key: LUCENE-2156
> URL: https://issues.apache.org/jira/browse/LUCENE-2156
> Project: Lucene - Java
> Issue Type: Improvement
> Components: Index
> Reporter: Michael McCandless
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 3.1
>
> Attachments: LUCENE-2156.patch, LUCENE-2156.patch
>
>
> Less costly than synchronized methods we have now...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]