mymeiyi commented on code in PR #28757:
URL: https://github.com/apache/doris/pull/28757#discussion_r1439126844


##########
be/src/olap/wal_manager.h:
##########
@@ -86,6 +94,9 @@ class WalManager {
     std::atomic<bool> _stop;
     std::shared_mutex _wal_column_id_map_lock;
     std::unordered_map<int64_t, std::vector<size_t>&> _wal_column_id_map;
+    std::shared_mutex _wal_cv_lock;
+    std::unordered_map<int64_t, std::shared_ptr<std::mutex>> _wal_lock_map;
+    std::unordered_map<int64_t, std::shared_ptr<std::condition_variable>> 
_wal_cv_map;

Review Comment:
   why not add lock and cv in a map



-- 
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]

Reply via email to