yujun777 commented on code in PR #34889: URL: https://github.com/apache/doris/pull/34889#discussion_r1622155144
########## be/src/olap/tablet_manager.h: ########## @@ -231,12 +231,13 @@ class TabletManager { tablets_shard() = default; tablets_shard(tablets_shard&& shard) { tablet_map = std::move(shard.tablet_map); - tablets_under_clone = std::move(shard.tablets_under_clone); + tablets_under_transition = std::move(shard.tablets_under_transition); } - // protect tablet_map, tablets_under_clone and tablets_under_restore mutable std::shared_mutex lock; tablet_map_t tablet_map; - std::set<int64_t> tablets_under_clone; + mutable std::shared_mutex lock_for_transition; Review Comment: use std::mutex -- 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