mirror of
https://github.com/isar/libmdbx.git
synced 2024-12-30 02:54:13 +08:00
mdbx: не взводим MDBX_FATAL_ERROR
для не-активной среды при проверке MDBX_ENV_CHECKPID
(backport).
This commit is contained in:
parent
25089e6491
commit
dfcd652e5c
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user