From: Howard Chu Date: Sun, 17 Feb 2013 00:48:43 +0000 (+0000) Subject: Don't limit retries when coalescing freelist X-Git-Tag: OPENLDAP_REL_ENG_2_4_34~3^2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=890f1da3eeedab99aecc63c85b9792aa17faf537;p=openldap Don't limit retries when coalescing freelist Try to use whatever's available. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 40d0207f20..8d7b97e099 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -1361,7 +1361,7 @@ none: pgno_t *mop = txn->mt_env->me_pghead; if (num > 1) { MDB_cursor m2; - int retry = 500, readit = 0, n2 = num-1; + int retry = 1, readit = 0, n2 = num-1; unsigned int i, j, k; /* If current list is too short, must fetch more and coalesce */ @@ -1448,11 +1448,10 @@ none: } } - /* Stop if we succeeded, or no more retries */ + /* Stop if we succeeded, or no retries */ if (!retry || pgno != P_INVALID) break; readit = 1; - retry--; } while (1); } else {