mdbx-windows: raise MDBX_PANIC if remap failed.

This commit is contained in:
Leo Yuriev 2018-01-09 15:46:42 +03:00
parent 963da34412
commit 8e8c00aadf

View File

@ -1702,6 +1702,12 @@ bailout:
"limit %" PRIuPTR " -> %" PRIuPTR ", errcode %d",
env->me_dbgeo.now, size_bytes, env->me_dbgeo.upper, limit_bytes,
rc);
if (!env->me_dxb_mmap.address) {
env->me_flags |= MDBX_FATAL_ERROR;
if (env->me_txn)
env->me_txn->mt_flags |= MDBX_TXN_ERROR;
rc = MDBX_PANIC;
}
}
#if defined(_WIN32) || defined(_WIN64)