mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +08:00
mdbx: не взводим MDBX_FATAL_ERROR
для не-активной среды при проверке MDBX_ENV_CHECKPID
.
This commit is contained in:
parent
abca22e32d
commit
179d8d6d6b
@ -8763,7 +8763,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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user