luffy-zh commented on code in PR #1916:
URL: https://github.com/apache/orc/pull/1916#discussion_r1591779299
##########
c++/src/Compression.cc:
##########
@@ -260,31 +270,53 @@ namespace orc {
throw std::runtime_error("Failed to reset inflate.");
}
- strm_.avail_in = static_cast<unsigned int>(bufferSize);
- strm_.next_in = rawInputBuffer.data();
+ // reset output buffer
+ if (outputPosition != 0) {
+ BufferedOutputStream::BackUp(outputSize - outputPosition);
Review Comment:
never mind, I've delete it
--
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]