From fbd76c44e4d67ed0ffce7a8387fbf505775356d7 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Wed, 20 Feb 2013 09:08:41 +0100 Subject: [PATCH] Tweak prev commit: Restore if-test as an assert --- libraries/liblmdb/mdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index d2cbba2..a6193c7 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -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)