From: Howard Chu Date: Tue, 11 Dec 2012 01:21:24 +0000 (-0800) Subject: FIx prev commit X-Git-Tag: OPENLDAP_REL_ENG_2_4_34~83^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=282be11654f871ce3cf824e85113b5ecae1810a6;p=openldap FIx prev commit --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index f147588b48..4fe330b1d1 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -2127,7 +2127,7 @@ mdb_txn_commit(MDB_txn *txn) if (env->me_pghead) { /* make sure first page of freeDB is touched and on freelist */ rc = mdb_page_search(&mc, NULL, MDB_PS_MODIFY); - if (rc) { + if (rc && rc != MDB_NOTFOUND) { fail: mdb_txn_abort(txn); return rc; @@ -2163,7 +2163,7 @@ free2: key.mv_size = MAXKEYSIZE+1; key.mv_data = NULL; rc = mdb_page_search(&mc, &key, MDB_PS_MODIFY); - if (rc) + if (rc && rc != MDB_NOTFOUND) goto fail; #if MDB_DEBUG > 1