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

Varun Thacker commented on LUCENE-3292:
---------------------------------------

I am not quite sure on how to start with this. 

In SegmentReader#get something like this is required :
{noformat}
    if (readOnly) {
      assert context != IOContext.DEFAULT;
      //assert context.context == IOContext.Context.READ;
      // Using the second assert checks for both READ and READONCE
    }
{noformat}

And what do I need to do in IndexWriter.ReaderPool#get so that context should 
be part of the key used to cache that reader in the pool?

> 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