mdbx: отмена корректировки assert-проверки внутри override_meta() (revert-backport).

This reverts commit a0b520fa32.
This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-07-22 12:31:50 +03:00
parent 58cad2995b
commit f5bbadf3a5

View File

@ -14574,7 +14574,7 @@ __cold static int __must_check_result override_meta(MDBX_env *env,
osal_flush_incoherent_mmap(env->me_map, pgno2bytes(env, NUM_METAS), osal_flush_incoherent_mmap(env->me_map, pgno2bytes(env, NUM_METAS),
env->me_os_psize); env->me_os_psize);
} }
eASSERT(env, (!env->me_txn && (env->me_flags & MDBX_ENV_ACTIVE) == 0) || eASSERT(env, (!env->me_txn && !env->me_txn0) ||
(env->me_stuck_meta == (int)target && (env->me_stuck_meta == (int)target &&
(env->me_flags & (MDBX_EXCLUSIVE | MDBX_RDONLY)) == (env->me_flags & (MDBX_EXCLUSIVE | MDBX_RDONLY)) ==
MDBX_EXCLUSIVE)); MDBX_EXCLUSIVE));