yiguolei commented on code in PR #9890:
URL: https://github.com/apache/incubator-doris/pull/9890#discussion_r886649936
##########
be/src/olap/olap_server.cpp:
##########
@@ -304,6 +320,49 @@ void StorageEngine::_tablet_checkpoint_callback(const
std::vector<DataDir*>& dat
} while
(!_stop_background_threads_latch.wait_for(std::chrono::seconds(interval)));
}
+void StorageEngine::_alpha_rowset_scan_thread_callback() {
+ LOG(INFO) << "try to start alpha rowset scan thread!";
+
+ std::vector<DataDir*> data_dirs;
Review Comment:
这里不需要获取data dirs了
##########
be/src/olap/olap_server.cpp:
##########
@@ -304,6 +320,49 @@ void StorageEngine::_tablet_checkpoint_callback(const
std::vector<DataDir*>& dat
} while
(!_stop_background_threads_latch.wait_for(std::chrono::seconds(interval)));
}
+void StorageEngine::_alpha_rowset_scan_thread_callback() {
+ LOG(INFO) << "try to start alpha rowset scan thread!";
+
+ std::vector<DataDir*> data_dirs;
+ for (auto& tmp_store : _store_map) {
+ data_dirs.push_back(tmp_store.second);
+ }
+
+ auto scan_interval_sec = config::scan_alpha_rowset_min_interval_sec;
+ auto max_convert_task = config::convert_rowset_thread_num * 2;
+ do {
+ std::vector<TabletSharedPtr> tablet_have_alpha_rowset;
+ _tablet_manager->find_tablet_have_alpha_rowset(data_dirs,
tablet_have_alpha_rowset);
Review Comment:
这里不要传入data dirs参数了
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]