yiguolei commented on a change in pull request #895: Remove old files after 
tablet is successfully loaded
URL: https://github.com/apache/incubator-doris/pull/895#discussion_r273792821
 
 

 ##########
 File path: be/src/olap/data_dir.cpp
 ##########
 @@ -604,18 +605,24 @@ OLAPStatus DataDir::_convert_old_tablet() {
     OLAPStatus convert_tablet_status = 
TabletMetaManager::traverse_headers(_meta, 
         convert_tablet_func, OLD_HEADER_PREFIX);
     if (convert_tablet_status != OLAP_SUCCESS) {
-        LOG(WARNING) << "there is failure when convert old tablet, data dir:" 
<< _path;
+        LOG(FATAL) << "there is failure when convert old tablet, data dir:" << 
_path;
         return convert_tablet_status;
     } else {
         LOG(INFO) << "successfully convert old tablet, data dir: " << _path;
     }
     return OLAP_SUCCESS;
 }
 
-OLAPStatus DataDir::_remove_old_meta_and_files() {
+OLAPStatus DataDir::_remove_old_meta_and_files(std::set<int64_t>& tablet_ids) {
     // clean old meta(olap header message) 
-    auto clean_old_meta_func = [this](long tablet_id,
+    auto clean_old_meta_func = [this, &tablet_ids](long tablet_id,
 
 Review comment:
   done

----------------------------------------------------------------
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]

Reply via email to