From: Howard Chu Date: Mon, 27 Aug 2012 21:45:16 +0000 (-0700) Subject: In mdb_audit, change assert to fprintf X-Git-Tag: OPENLDAP_REL_ENG_2_4_33~28^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4bc18a5dd391a2c24c617418c5ba3057c6505b54;p=openldap In mdb_audit, change assert to fprintf --- diff --git a/libraries/libmdb/mdb.c b/libraries/libmdb/mdb.c index 67ffff35cf..a2d0cd2e0a 100644 --- a/libraries/libmdb/mdb.c +++ b/libraries/libmdb/mdb.c @@ -1137,7 +1137,10 @@ static void mdb_audit(MDB_txn *txn) while (mdb_cursor_sibling(&mc, 1) == 0); } } - assert(freecount + count + 2 /* metapages */ == txn->mt_next_pgno); + if (freecount + count + 2 /* metapages */ != txn->mt_next_pgno) { + fprintf(stderr, "audit: %lu freecount: %lu count: %lu total: %lu next_pgno: %lu\n", + txn->mt_txnid, freecount, count+2, freecount+count+2, txn->mt_next_pgno); + } } #endif