From: Hallvard Furuseth Date: Sat, 22 Mar 2014 21:27:10 +0000 (+0100) Subject: Tweak mdb_mid2l_insert() call from ITS#7775. X-Git-Tag: OPENLDAP_REL_ENG_2_4_40~132^2~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1519f4bc3d105a5cbb7f1b624d8fd91e7d90c70e;p=openldap Tweak mdb_mid2l_insert() call from ITS#7775. It does not return MDB error codes. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 71b025fa68..0e5c361887 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -6130,8 +6130,8 @@ current: return ENOMEM; id2.mid = pg; id2.mptr = np; - rc = mdb_mid2l_insert(mc->mc_txn->mt_u.dirty_list, &id2); - mdb_cassert(mc, rc == 0); + rc2 = mdb_mid2l_insert(mc->mc_txn->mt_u.dirty_list, &id2); + mdb_cassert(mc, rc2 == 0); if (!(flags & MDB_RESERVE)) { /* Copy end of page, adjusting alignment so * compiler may copy words instead of bytes.