already have the lock the first time, we must also have the lock the second
time.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808649
13f79535-47bb-0310-9956-
ffa450edef68
apr_finfo_t finfo;
finfo.mtime = 0;
apr_file_t *lockfile;
+ void *dummy;
if (!conf || !conf->lock || !conf->lockpath) {
/* no locks configured, leave */
return APR_SUCCESS;
}
+ /* lock already obtained earlier? if so, success */
+ apr_pool_userdata_get(&dummy, CACHE_LOCKFILE_KEY, r->pool);
+ if (dummy) {
+ return APR_SUCCESS;
+ }
+
/* create the key if it doesn't exist */
if (!key) {
cache_generate_key(r, r->pool, &key);