mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Cache: fixed slots accounting error introduced in c9d680b00744.
This commit is contained in:
parent
0b768c1435
commit
24e38323ee
@ -2115,12 +2115,12 @@ ngx_http_file_cache_add(ngx_http_file_cache_t *cache, ngx_http_cache_t *c)
|
|||||||
"could not allocate node%s", cache->shpool->log_ctx);
|
"could not allocate node%s", cache->shpool->log_ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
cache->sh->count++;
|
|
||||||
|
|
||||||
ngx_shmtx_unlock(&cache->shpool->mutex);
|
ngx_shmtx_unlock(&cache->shpool->mutex);
|
||||||
return NGX_ERROR;
|
return NGX_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cache->sh->count++;
|
||||||
|
|
||||||
ngx_memcpy((u_char *) &fcn->node.key, c->key, sizeof(ngx_rbtree_key_t));
|
ngx_memcpy((u_char *) &fcn->node.key, c->key, sizeof(ngx_rbtree_key_t));
|
||||||
|
|
||||||
ngx_memcpy(fcn->key, &c->key[sizeof(ngx_rbtree_key_t)],
|
ngx_memcpy(fcn->key, &c->key[sizeof(ngx_rbtree_key_t)],
|
||||||
|
Loading…
Reference in New Issue
Block a user