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

    https://github.com/apache/nifi-minifi-cpp/pull/448#discussion_r236149200
  
    --- Diff: nanofi/src/api/nanofi.cpp ---
    @@ -223,13 +226,15 @@ void free_flowfile(flow_file_record *ff) {
         return;
       }
       auto content_repo_ptr = 
static_cast<std::shared_ptr<minifi::core::ContentRepository>*>(ff->crp);
    -  if (content_repo_ptr->get()) {
    +  if (content_repo_ptr->get() && (ff->keepContent == 0)) {
    --- End diff --
    
    @phrocker : I don't link this, but I have no better idea yet. We provide a 
flow_file_record to access content and attributes in the processor logic 
callback. This means that the content cannot be deleted in case the flowfile is 
transfered via a relationship. 


---

Reply via email to