mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:44:12 +08:00
mdbx: add missing err-log for MDBX_TXN_FULL
during page allocation.
Minor for https://github.com/erthink/libmdbx/issues/186 Change-Id: Iadb868c64fba4e9d5a4ee7df093f0cfb9288bf93
This commit is contained in:
parent
b7110eb4d4
commit
416a802789
@ -6061,8 +6061,11 @@ no_loose:
|
||||
done:
|
||||
if (unlikely(mp == nullptr))
|
||||
return MDBX_SUCCESS;
|
||||
if (unlikely(txn->tw.dirtyroom < 1))
|
||||
if (unlikely(txn->tw.dirtyroom < 1)) {
|
||||
mdbx_error("Dirtyroom is depleted, DPL length %u",
|
||||
txn->tw.dirtylist->length);
|
||||
return MDBX_TXN_FULL;
|
||||
}
|
||||
mdbx_ensure(env, pgno >= NUM_METAS);
|
||||
if (env->me_flags & MDBX_WRITEMAP) {
|
||||
np = pgno2page(env, pgno);
|
||||
|
Loading…
x
Reference in New Issue
Block a user