From f9977975ae09d64a3a6cbddf7ca90bcafcaea140 Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Mon, 12 Apr 2021 12:24:18 +0300 Subject: [PATCH] mdbx: remove extra `TXN_DBI_CHANGED()` check. Change-Id: If2014f7bfbfab98f3c0c357f2475da57efc50693 --- src/core.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core.c b/src/core.c index c3856abf..31f697a8 100644 --- a/src/core.c +++ b/src/core.c @@ -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;