[ 
https://issues.apache.org/jira/browse/LUCENE-3292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13062119#comment-13062119
 ] 

Michael McCandless commented on LUCENE-3292:
--------------------------------------------

Right now the ReaderPool.readerMap is a Map<SegmentInfo,SegmentReader>.

I think we just need to change that to 
Map<SegmentInfoAndIOContext,SegmentReader> instead, where 
SegmentInfoAndIOContext is a new struct holding SegmentInfo and 
IOContext.Context and implementing hashCode/equals by delegating to the 
SegmentInfo and IOContext.Context.

> IOContext should be part of the SegmentReader cache key 
> --------------------------------------------------------
>
>                 Key: LUCENE-3292
>                 URL: https://issues.apache.org/jira/browse/LUCENE-3292
>             Project: Lucene - Java
>          Issue Type: Task
>          Components: core/index
>    Affects Versions: 4.0
>            Reporter: Simon Willnauer
>            Assignee: Varun Thacker
>            Priority: Minor
>             Fix For: 4.0
>
>
> Once IOContext (LUCENE-2793) is landed the IOContext should be part of the 
> key used to cache that reader in the pool

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to