yiguolei commented on a change in pull request #669: Convert old files when
start be
URL: https://github.com/apache/incubator-doris/pull/669#discussion_r261936550
##########
File path: be/src/olap/rowset/segment_group.cpp
##########
@@ -730,6 +784,18 @@ OLAPStatus
SegmentGroup::remove_old_files(std::vector<std::string>* links_to_rem
return OLAP_SUCCESS;
}
+OLAPStatus SegmentGroup::remove_new_files(std::vector<std::string>*
links_to_remove) {
+ for (int segment_id = 0; segment_id < _num_segments; segment_id++) {
+ std::string data_file_name = construct_data_file_path(segment_id);
+ RETURN_NOT_OK(remove_dir(data_file_name));
+ links_to_remove->push_back(data_file_name);
+ std::string index_file_name = construct_index_file_path(segment_id);
+ RETURN_NOT_OK(remove_dir(index_file_name));
+ links_to_remove->push_back(index_file_name);
Review comment:
I removed this function.
----------------------------------------------------------------
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]