masaori335 commented on code in PR #13367:
URL: https://github.com/apache/trafficserver/pull/13367#discussion_r3540445562


##########
src/proxy/HostStatus.cc:
##########
@@ -336,15 +332,15 @@ HostStatus::getHostStatus(const std::string_view name)
   }
 
   // the hash table value pointer has the TSHostStatus value.
-  ink_rwlock_rdlock(&host_status_rwlock);
   {
+    ts::bravo::shared_lock<ts::bravo::shared_mutex> lock(host_status_rwlock);
+
     auto it = hosts_statuses.find(std::string(name));
     lookup  = it != hosts_statuses.end();
     if (lookup) {

Review Comment:
   It looks like pre-existing issue. I'll cover this in another PR to clarify 
scope of changes.



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

Reply via email to