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:
Leonid Yuriev 2021-04-21 12:20:32 +03:00
parent b7110eb4d4
commit 416a802789

View File

@ -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);