imay commented on a change in pull request #2075: Segment v2 stream load core
dump(#2037)
URL: https://github.com/apache/incubator-doris/pull/2075#discussion_r339343702
##########
File path: be/src/olap/rowset/segment_v2/page_builder.h
##########
@@ -79,6 +84,12 @@ class PageBuilder {
// and should be followed by reset() before reuse the builder
virtual void release() = 0;
+ // Return a Slice which represents the encoded data of current page,and
release the slice
+ // caller need to delete the returned slice
+ virtual Slice finish_and_release() {
+ return nullptr;
Review comment:
```suggestion
return Slice(nullptr, 0);
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]