HappenLee commented on a change in pull request #5516:
URL: https://github.com/apache/incubator-doris/pull/5516#discussion_r594020979
##########
File path: be/src/olap/delta_writer.cpp
##########
@@ -307,8 +308,8 @@ OLAPStatus
DeltaWriter::close_wait(google::protobuf::RepeatedPtrField<PTabletInf
if (_new_tablet != nullptr) {
LOG(INFO) << "convert version for schema change";
- SchemaChangeHandler schema_change;
- res = schema_change.schema_version_convert(_tablet, _new_tablet,
&_cur_rowset,
+ auto schema_change_handler = SchemaChangeHandler::instance();
Review comment:
Just to make it easy to mem trace all mem use in `SchemaChange`.
At the same time , there is no need to new a instance each time of
schemchange
----------------------------------------------------------------
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]