yiguolei commented on code in PR #11131:
URL: https://github.com/apache/doris/pull/11131#discussion_r933031064


##########
be/src/olap/schema_change.cpp:
##########
@@ -2365,7 +2364,7 @@ Status SchemaChangeHandler::_parse_request(
     }
 
     const TabletSchema& ref_tablet_schema = *base_tablet_schema;
-    const TabletSchema& new_tablet_schema = new_tablet->tablet_schema();
+    const TabletSchema& new_tablet_schema = *new_tablet->tablet_schema();

Review Comment:
   use copy_from here if you will modify the tablet schema. If you will not 
modify tablet schema, then just use share ptr here.



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to