From: Howard Chu Date: Thu, 18 Jul 2013 22:24:09 +0000 (-0700) Subject: Tweak reader checks X-Git-Tag: OPENLDAP_REL_ENG_2_4_36~32^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5ca73f864f1185e855cd525b71c29ccd3c5e7f97;p=openldap Tweak reader checks Use mti_numreaders for loop limit, not me_maxreaders. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index b36ff2bb4f..a4f6238e00 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -7999,7 +7999,7 @@ int mdb_reader_list(MDB_env *env, MDB_msg_func *func, void *ctx) if (!env->me_txns) { return func("(no reader locks)\n", ctx); } - rdrs = env->me_maxreaders; + rdrs = env->me_txns->mti_numreaders; mr = env->me_txns->mti_readers; for (i=0; ime_txns) return MDB_SUCCESS; - rdrs = env->me_maxreaders; + rdrs = env->me_txns->mti_numreaders; pids = malloc((rdrs+1) * sizeof(pid_t)); if (!pids) return ENOMEM;