lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-3292) IOContext should be part of the SegmentReader cache key
Date Fri, 08 Jul 2011 19:13:16 GMT

    [ 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message