weizuo93 commented on a change in pull request #5651:
URL: https://github.com/apache/incubator-doris/pull/5651#discussion_r617410118
##########
File path: be/src/olap/tablet.cpp
##########
@@ -725,7 +727,23 @@ const uint32_t
Tablet::calc_compaction_score(CompactionType compaction_type) con
}
}
-const uint32_t Tablet::_calc_cumulative_compaction_score() const {
+const uint32_t Tablet::_calc_cumulative_compaction_score() {
+#ifndef BE_TEST
+ std::string current_policy = "";
+ {
+ std::lock_guard<std::mutex>
lock(*config::get_mutable_string_config_lock());
Review comment:
> It's better to check the config at the beginning of each
`_compaction_tasks_producer_callback` loop,
> instead of check it for each tablet.
Thanks, it sounds reasonable.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]