From 6fa79d49b4f4e68893ac9dc9327879979882ef00 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 31 Dec 2019 20:44:40 +0300 Subject: [PATCH] mdbx: fix MDBX_RESULT_TRUE from page_alloc(). Change-Id: Ib285e98f967b9aefac8facfba31618a80c5e8129 --- src/elements/core.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/elements/core.c b/src/elements/core.c index 88da9c0c..e8835a95 100644 --- a/src/elements/core.c +++ b/src/elements/core.c @@ -4353,9 +4353,10 @@ skip_cache: goto done; } - mdbx_warning("unable growth datafile to %" PRIaPGNO - " pages (+%" PRIaPGNO "), errcode %d", - aligned, aligned - txn->mt_end_pgno, rc); + mdbx_error("unable growth datafile to %" PRIaPGNO " pages (+%" PRIaPGNO + "), errcode %d", + aligned, aligned - txn->mt_end_pgno, rc); + rc = (rc == MDBX_RESULT_TRUE) ? MDBX_MAP_FULL : rc; } else { mdbx_debug("gc-alloc: next %u > upper %u", next, txn->mt_geo.upper); }