]> git.sur5r.net Git - openldap/commitdiff
Tweak mdb_mid2l_insert() call from ITS#7775.
authorHallvard Furuseth <hallvard@openldap.org>
Sat, 22 Mar 2014 21:27:10 +0000 (22:27 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Sat, 22 Mar 2014 21:27:10 +0000 (22:27 +0100)
It does not return MDB error codes.

libraries/liblmdb/mdb.c

index 71b025fa68fd970504cd42ae1a80a7930ed567f7..0e5c3618874d083c67e643f8843fe6433abe7079 100644 (file)
@@ -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.