csun5285 commented on code in PR #22159: URL: https://github.com/apache/doris/pull/22159#discussion_r1278509831
########## be/src/agent/task_worker_pool.cpp: ########## @@ -433,6 +433,63 @@ void TaskWorkerPool::_update_tablet_meta_worker_thread_callback() { tablet->tablet_schema_unlocked()->set_is_in_memory(tablet_meta_info.is_in_memory); need_to_save = true; } + if (tablet_meta_info.__isset.compaction_policy) { + tablet->tablet_meta()->mutable_tablet_schema()->set_compaction_policy( + tablet_meta_info.compaction_policy); + std::shared_lock rlock(tablet->get_header_lock()); + for (auto& rowset_meta : tablet->tablet_meta()->all_mutable_rs_metas()) { + rowset_meta->tablet_schema()->set_compaction_policy( + tablet_meta_info.compaction_policy); + } + tablet->tablet_schema_unlocked()->set_compaction_policy( Review Comment: now I've moved them to the tablet meta -- 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: commits-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org