mdbx: быстрый выход для не-активной среды.

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-03-21 13:18:19 +03:00
parent 179d8d6d6b
commit 183d1e1a44

View File

@ -15913,6 +15913,9 @@ __cold int mdbx_env_resurrect_after_fork(MDBX_env *env) {
if (unlikely(env->me_flags & MDBX_FATAL_ERROR))
return MDBX_PANIC;
if (unlikely((env->me_flags & MDBX_ENV_ACTIVE) == 0))
return MDBX_SUCCESS;
const uint32_t new_pid = osal_getpid();
if (unlikely(env->me_pid == new_pid))
return MDBX_SUCCESS;