masaori335 commented on a change in pull request #7807:
URL: https://github.com/apache/trafficserver/pull/7807#discussion_r630602927



##########
File path: proxy/http/HttpCacheSM.cc
##########
@@ -283,6 +283,7 @@ HttpCacheSM::do_cache_open_read(const HttpCacheKey &key)
     return ACTION_RESULT_DONE;
   } else {
     ink_assert(pending_action != nullptr || write_locked == true);
+    captive_action.cancelled = false; // Make sure not cancelled before we 
hand it out
     return &captive_action;

Review comment:
       Not about this change, but I'm not sure why this function returns 
`&captive_action` instead of `pending_action`. Above line 273, `pending_action` 
is assigned `Action *` from the `cacheProcessor.open_read`. Should this 
function return `pending_action` here?




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to