diff options
Diffstat (limited to 'src/event/ngx_event_busy_lock.c')
-rw-r--r-- | src/event/ngx_event_busy_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event/ngx_event_busy_lock.c b/src/event/ngx_event_busy_lock.c index 1b09ad96c..2d0bad571 100644 --- a/src/event/ngx_event_busy_lock.c +++ b/src/event/ngx_event_busy_lock.c @@ -20,7 +20,6 @@ static void ngx_event_busy_lock_posted_handler(ngx_event_t *ev); * NGX_AGAIN: the all busy locks are held but we will wait the specified time * NGX_BUSY: ctx->timer == 0: there are many the busy locks * ctx->timer != 0: there are many the waiting locks - * NGX_ERROR: an error occured while the mutex locking */ ngx_int_t @@ -36,6 +35,7 @@ ngx_event_busy_lock(ngx_event_busy_lock_t *bl, ngx_event_busy_lock_ctx_t *ctx) if (bl->busy < bl->max_busy) { bl->busy++; + rc = NGX_OK; } else if (ctx->timer && bl->waiting < bl->max_waiting) { |