You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2013/10/10 04:47:43 UTC
[jira] [Commented] (LUCENE-4998) be more precise about IOContext
for reads
[ https://issues.apache.org/jira/browse/LUCENE-4998?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791124#comment-13791124 ]
ASF subversion and git services commented on LUCENE-4998:
---------------------------------------------------------
Commit 1530845 from [~rcmuir] in branch 'dev/branches/lucene_solr_4_5'
[ https://svn.apache.org/r1530845 ]
LUCENE-4998, LUCENE-5242, LUCENE-5254, LUCENE-5262, LUCENE-5263, LUCENE-5264: svn merge -c 1522723 -c 1525896 -c 1529136 -c 1529141 -c 1530063 -c 1530416 -c 1530657
> be more precise about IOContext for reads
> -----------------------------------------
>
> Key: LUCENE-4998
> URL: https://issues.apache.org/jira/browse/LUCENE-4998
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Shikhar Bhushan
> Assignee: Michael McCandless
> Priority: Minor
> Fix For: 4.6, 5.0
>
> Attachments: LUCENE-4998.patch
>
>
> Set the context as {{IOContext.READ}} / {{IOContext.READONCE}} where applicable
> ----
> Motivation:
> Custom {{PostingsFormat}} may want to check the context on {{SegmentReadState}} and branch differently, but for this to work properly the context has to be specified correctly up the stack.
> For example, {{DirectPostingsFormat}} only loads postings into memory if the {{context != MERGE}}. However a better condition would be {{context == Context.READ && !context.readOnce}}.
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org