From: Howard Chu Date: Wed, 18 Jun 2014 20:37:04 +0000 (-0700) Subject: Tweak ovpage search X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~129^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=39ed8bef0406844fca087d194416748afe8ca27f;p=openldap Tweak ovpage search Use num*20, chosen from empirical testing --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 8445f076ba..fdc03864df 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -1790,7 +1790,7 @@ mdb_page_alloc(MDB_cursor *mc, int num, MDB_page **mp) #else enum { Paranoid = 0, Max_retries = INT_MAX /*infinite*/ }; #endif - int rc, retry = num; + int rc, retry = num * 20; MDB_txn *txn = mc->mc_txn; MDB_env *env = txn->mt_env; pgno_t pgno, *mop = env->me_pghead;