mdbx: удаление лишних проверок внутри `mdbx_dbi_close()` (backport).
This commit is contained in:
parent
9803259cab
commit
42561e3b8e
|
@ -23125,9 +23125,6 @@ int mdbx_dbi_close(MDBX_env *env, MDBX_dbi dbi) {
|
|||
if (unlikely(dbi >= env->me_maxdbs))
|
||||
return MDBX_BAD_DBI;
|
||||
|
||||
if (unlikely(dbi < CORE_DBS || dbi >= env->me_maxdbs))
|
||||
return MDBX_BAD_DBI;
|
||||
|
||||
rc = osal_fastmutex_acquire(&env->me_dbi_lock);
|
||||
if (likely(rc == MDBX_SUCCESS)) {
|
||||
retry:
|
||||
|
|
Loading…
Reference in New Issue