bryancall opened a new pull request, #14082: URL: https://github.com/apache/trafficserver/pull/14082
handleWriteLock() takes stripe->mutex through CACHE_TRY_LOCK before it counts lock contention, so stripe cannot be null by the time it tests stripe for the per-volume contention counter. Coverity reports the check as a null test after a dereference. This keeps the cache_vol test and drops the stripe one. Both CACHE_TRY_LOCK variants and both MUTEX_TRY_LOCK variants read stripe->mutex first, and the only callers are do_write_lock() and do_write_lock_call(). No behavior change. Testing: built with ASAN and warnings as errors in the fedora:45 CI image; all 1400 ctest tests and the 115 Uranium tests matching "cache" pass under ASAN. -- 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]
