Skip to content

Commit

Permalink
Update src/ngx_lua_resty_lmdb_module.c
Browse files Browse the repository at this point in the history
  • Loading branch information
dndx authored Nov 22, 2024
1 parent 657ed4d commit 51978d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ngx_lua_resty_lmdb_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ ngx_lua_resty_lmdb_open_file(ngx_cycle_t *cycle,
/* Set max readers depending on the number of worker processes */
ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
readers = (size_t) ccf->worker_processes + NGX_LUA_RESTY_LMDB_MAX_READERS_REDUNDANCY;

if (readers < NGX_LUA_RESTY_LMDB_DEFAULT_READERS) {
readers = NGX_LUA_RESTY_LMDB_DEFAULT_READERS;
}
Expand Down

0 comments on commit 51978d7

Please sign in to comment.