]> git.sur5r.net Git - openldap/commitdiff
Tweak prev commit: Restore if-test as an assert
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 20 Feb 2013 08:08:41 +0000 (09:08 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 20 Feb 2013 08:08:41 +0000 (09:08 +0100)
libraries/liblmdb/mdb.c

index d2cbba264880205af35b129da9c9eee962e3ddc4..a6193c704d60ed16f845e91240f2ffba8a86eff3 100644 (file)
@@ -1631,6 +1631,7 @@ finish:
                                return 0;
                        }
                }
+               assert(mc->mc_txn->mt_u.dirty_list[0].mid < MDB_IDL_UM_MAX);
                /* No - copy it */
                np = mdb_page_malloc(mc);
                if (!np)