mirror of
https://gitflic.ru/project/erthink/libmdbx.git
synced 2025-01-10 18:27:13 +00:00
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))
|
if (unlikely(dbi >= env->me_maxdbs))
|
||||||
return MDBX_BAD_DBI;
|
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);
|
rc = osal_fastmutex_acquire(&env->me_dbi_lock);
|
||||||
if (likely(rc == MDBX_SUCCESS)) {
|
if (likely(rc == MDBX_SUCCESS)) {
|
||||||
retry:
|
retry:
|
||||||
|
Loading…
Reference in New Issue
Block a user