mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:54:14 +08:00
mdbx-windows: raise MDBX_PANIC if remap failed.
This commit is contained in:
parent
963da34412
commit
8e8c00aadf
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user