bneradt commented on code in PR #9442: URL: https://github.com/apache/trafficserver/pull/9442#discussion_r1122311756
########## iocore/hostdb/HostDB.cc: ########## @@ -625,29 +640,34 @@ probe(const Ptr<ProxyMutex> &mutex, HostDBHash const &hash, bool ignore_timeout) } // Otherwise HostDB is enabled, so we'll do our thing - ink_assert(this_ethread() == hostDB.refcountcache->lock_for_key(hash.hash.fold())->thread_holding); - uint64_t folded_hash = hash.hash.fold(); + uint64_t folded_hash = hash.hash.fold(); + std::shared_mutex &bucket_lock = hostDB.refcountcache->lock_for_key(folded_hash); Review Comment: Switched to ts::shared_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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
