mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:54:13 +08:00
mdbx: remove extra TXN_DBI_CHANGED()
check.
Change-Id: If2014f7bfbfab98f3c0c357f2475da57efc50693
This commit is contained in:
parent
e35c92eabb
commit
f9977975ae
@ -13840,8 +13840,6 @@ static int mdbx_cursor_touch(MDBX_cursor *mc) {
|
||||
mdbx_cassert(mc, (mc->mc_flags & C_RECLAIMING) == 0);
|
||||
/* Touch DB record of named DB */
|
||||
MDBX_cursor_couple cx;
|
||||
if (TXN_DBI_CHANGED(mc->mc_txn, mc->mc_dbi))
|
||||
return MDBX_BAD_DBI;
|
||||
rc = mdbx_cursor_init(&cx.outer, mc->mc_txn, MAIN_DBI);
|
||||
if (unlikely(rc != MDBX_SUCCESS))
|
||||
return rc;
|
||||
|
Loading…
x
Reference in New Issue
Block a user