proposal below. Fixes a compiler warning on v2.2 reported by Rainer Jung.
mod_cache: Introduce the thundering herd lock, a mechanism to keep
the flood of requests at bay that strike a backend webserver as
a cached entity goes stale.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@917177
13f79535-47bb-0310-9956-
ffa450edef68
lockname);
return status;
}
- if (APR_SUCCESS == status && ((now - finfo.mtime) > conf->lockmaxage)
- || (now < finfo.mtime)) {
+ if ((status == APR_SUCCESS) && (((now - finfo.mtime) > conf->lockmaxage)
+ || (now < finfo.mtime))) {
ap_log_error(APLOG_MARK, APLOG_INFO, status, r->server,
"Cache lock file for '%s' too old, removing: %s",
r->uri, lockname);