nginx-0.0.1-2003-11-11-00:09:22 import
diff --git a/src/http/ngx_http_busy_lock.c b/src/http/ngx_http_busy_lock.c index 2ed66dc..085cd56 100644 --- a/src/http/ngx_http_busy_lock.c +++ b/src/http/ngx_http_busy_lock.c
@@ -100,11 +100,14 @@ } -void ngx_http_busy_unlock_cachable(ngx_http_busy_lock_t *bl, - ngx_http_busy_lock_ctx_t *bc) +void ngx_http_busy_unlock(ngx_http_busy_lock_t *bl, + ngx_http_busy_lock_ctx_t *bc) { - bl->md5_mask[bc->slot / 8] &= ~(1 << (bc->slot & 7)); - bl->cachable--; + if (bl->md5) { + bl->md5_mask[bc->slot / 8] &= ~(1 << (bc->slot & 7)); + bl->cachable--; + } + bl->busy--; }