Skip to content

Commit

Permalink
Fix unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
ZigzagAK authored Sep 20, 2021
1 parent a4e6d89 commit cf832b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ngx_zookeeper_upstream_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -1859,6 +1859,10 @@ zookeeper_sync_unlock_upstream(ngx_http_request_t *r, ngx_flag_t local,

zmcf = ngx_http_get_module_main_conf(r, ngx_zookeeper_upstream_module);

if (zscf->lock.data == NULL) {
return NGX_HTTP_NO_CONTENT;
}

pool = ngx_create_pool(2048, ngx_cycle->log);
if (pool == NULL)
goto nomem;
Expand Down

0 comments on commit cf832b2

Please sign in to comment.