Mercurial > hg > nginx-quic
diff src/http/ngx_http_busy_lock.c @ 178:a8ff48d26cca
nginx-0.0.1-2003-11-11-00:09:22 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 10 Nov 2003 21:09:22 +0000 |
parents | c0552e5ab567 |
children | c966c09be66b |
line wrap: on
line diff
--- a/src/http/ngx_http_busy_lock.c +++ b/src/http/ngx_http_busy_lock.c @@ -100,11 +100,14 @@ ngx_log_debug(bc->event->log, "BUSYLOCK: } -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--; }