mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-17 12:24:19 -05:00
In mdb_audit, change assert to fprintf
This commit is contained in:
parent
85ae5011e7
commit
4bc18a5dd3
1 changed files with 4 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue