kangpinghuang commented on a change in pull request #909: Fix wrong version set in TabletMeta and rowset null pointer URL: https://github.com/apache/incubator-doris/pull/909#discussion_r274734680
########## File path: be/src/olap/tablet.cpp ########## @@ -177,19 +173,19 @@ OLAPStatus Tablet::revise_tablet_meta(const TabletMeta& tablet_meta, OLAPStatus res = OLAP_SUCCESS; do { // load new local tablet_meta to operate on - TabletMeta new_tablet_meta; - TabletMetaManager::get_header(_data_dir, tablet_id(), schema_hash(), &new_tablet_meta); + TabletMetaSharedPtr new_tablet_meta(new TabletMeta()); Review comment: TabletMetaSharedPtr new_tablet_meta(new(std::nothrow) TabletMeta()) ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@doris.apache.org For additional commands, e-mail: dev-h...@doris.apache.org