mdbx: не взводим MDBX_FATAL_ERROR для не-активной среды при проверке MDBX_ENV_CHECKPID.

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

View File

@ -8763,7 +8763,7 @@ static __inline int check_env(const MDBX_env *env, const bool wanna_active) {
if (wanna_active) { if (wanna_active) {
#if MDBX_ENV_CHECKPID #if MDBX_ENV_CHECKPID
if (unlikely(env->me_pid != osal_getpid())) { if (unlikely(env->me_pid != osal_getpid()) && env->me_pid) {
((MDBX_env *)env)->me_flags |= MDBX_FATAL_ERROR; ((MDBX_env *)env)->me_flags |= MDBX_FATAL_ERROR;
return MDBX_PANIC; return MDBX_PANIC;
} }