szaszm commented on a change in pull request #1177:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1177#discussion_r712095269
##########
File path: libminifi/src/core/ProcessSession.cpp
##########
@@ -311,9 +333,8 @@ int64_t ProcessSession::read(const
std::shared_ptr<core::FlowFile> &flow, InputS
throw Exception(FILE_OPERATION_EXCEPTION, "Failed to open flowfile
content for read");
}
- stream->seek(flow->getOffset());
-
- auto ret = callback->process(stream);
+ auto flow_file_stream = std::make_shared<FlowFileStream>(stream, flow);
+ auto ret = callback->process(flow_file_stream);
Review comment:
Oh, I missed that detail. Nevermind then, thanks for clarifying this.
Could you maybe add this as a comment above the class?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]