mdbx: fix MDBX_RESULT_TRUE from page_alloc().

Change-Id: Ib285e98f967b9aefac8facfba31618a80c5e8129
This commit is contained in:
Leonid Yuriev 2019-12-31 20:44:40 +03:00
parent 66f3c0a77e
commit 6fa79d49b4

View File

@ -4353,9 +4353,10 @@ skip_cache:
goto done; goto done;
} }
mdbx_warning("unable growth datafile to %" PRIaPGNO mdbx_error("unable growth datafile to %" PRIaPGNO " pages (+%" PRIaPGNO
" pages (+%" PRIaPGNO "), errcode %d", "), errcode %d",
aligned, aligned - txn->mt_end_pgno, rc); aligned, aligned - txn->mt_end_pgno, rc);
rc = (rc == MDBX_RESULT_TRUE) ? MDBX_MAP_FULL : rc;
} else { } else {
mdbx_debug("gc-alloc: next %u > upper %u", next, txn->mt_geo.upper); mdbx_debug("gc-alloc: next %u > upper %u", next, txn->mt_geo.upper);
} }