From 9ea6922a2f6661b7488e9b8820c1ad3c0a8e953f Mon Sep 17 00:00:00 2001 From: Leonid Yuriev Date: Tue, 17 Nov 2020 07:44:02 +0300 Subject: [PATCH] mdbx: minor simplify `mdbx_cursor_set()`. Change-Id: I034f396368024af21e8ee741c13a28c9bc277121 --- src/core.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/core.c b/src/core.c index 4ce74b05..4148ae73 100644 --- a/src/core.c +++ b/src/core.c @@ -12290,15 +12290,11 @@ set1: rc = 0; } *data = olddata; - } else { - if (mc->mc_xcursor) - mc->mc_xcursor->mx_cursor.mc_flags &= ~(C_INITIALIZED | C_EOF); - if (unlikely((rc = mdbx_node_read( - mc, node, data, - pp_txnid4chk(mc->mc_pg[mc->mc_top], mc->mc_txn))) != - MDBX_SUCCESS)) - return rc; - } + } else if (unlikely((rc = mdbx_node_read(mc, node, data, + pp_txnid4chk(mc->mc_pg[mc->mc_top], + mc->mc_txn))) != + MDBX_SUCCESS)) + return rc; } /* The key already matches in all other cases */