HappenLee commented on code in PR #62954:
URL: https://github.com/apache/doris/pull/62954#discussion_r3178413391
##########
be/src/runtime/fragment_mgr.cpp:
##########
@@ -299,8 +299,11 @@ void ConcurrentContextMap<Key, Value,
ValueType>::insert(const Key& query_id,
template <typename Key, typename Value, typename ValueType>
void ConcurrentContextMap<Key, Value, ValueType>::clear() {
for (auto& pair : _internal_map) {
- std::unique_lock lock(*pair.first);
- auto& map = pair.second;
+ phmap::flat_hash_map<Key, Value> map;
Review Comment:
这个改动没问题,请把注释写一下
--
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]