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

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-03-21 13:22:33 +03:00
parent 25089e6491
commit dfcd652e5c
No known key found for this signature in database
GPG Key ID: 518BD10B927E8686

View File

@ -8274,7 +8274,7 @@ static __inline int check_env(const MDBX_env *env, const bool wanna_active) {
if (wanna_active) {
#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;
return MDBX_PANIC;
}