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

ASF GitHub Bot commented on MINIFICPP-648:
------------------------------------------

Github user arpadboda commented on a diff in the pull request:

    https://github.com/apache/nifi-minifi-cpp/pull/432#discussion_r231202899
  
    --- Diff: nanofi/src/cxx/Plan.cpp ---
    @@ -162,6 +153,21 @@ bool 
ExecutionPlan::runNextProcessor(std::function<void(const std::shared_ptr<co
       }
       std::shared_ptr<core::ProcessSession> current_session = 
std::make_shared<core::ProcessSession>(context);
       process_sessions_.push_back(current_session);
    +  if (input_ff != nullptr) {
    +    auto content_repo = 
static_cast<std::shared_ptr<minifi::core::ContentRepository>*>(input_ff->crp);
    +    std::shared_ptr<minifi::ResourceClaim> claim = 
std::make_shared<minifi::ResourceClaim>(input_ff->contentLocation, 
*content_repo);
    +    auto stream = (*content_repo)->read(claim);
    --- End diff --
    
    This copies the content of the incoming flow file. 
    Naturally this leaves space for improvement, in case the content repos of 
the current flow and the incoming flow file are the same, the copy is needless. 
    Given the size of the change I would prefer to do it later. 


> add processor and add processor with linkage nomenclature is confusing
> ----------------------------------------------------------------------
>
>                 Key: MINIFICPP-648
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-648
>             Project: NiFi MiNiFi C++
>          Issue Type: Improvement
>            Reporter: Mr TheSegfault
>            Assignee: Arpad Boda
>            Priority: Blocker
>              Labels: CAPI
>             Fix For: 0.6.0
>
>
> add_processor should be changed to always add a processor with linkage 
> without compelling documentation as why this exists.. As a result we will 
> need to add a create_processor function to create one without adding it to 
> the flow ( certain use cases where a flow isn't needed such as invokehttp or 
> listenhttp ) this can be moved to 0.7.0 if we tag before recent commits. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to