mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:44:13 +08:00
mdbx: minor simplify mdbx_cursor_set()
.
Change-Id: I034f396368024af21e8ee741c13a28c9bc277121
This commit is contained in:
parent
56a52b0b01
commit
9ea6922a2f
14
src/core.c
14
src/core.c
@ -12290,15 +12290,11 @@ set1:
|
|||||||
rc = 0;
|
rc = 0;
|
||||||
}
|
}
|
||||||
*data = olddata;
|
*data = olddata;
|
||||||
} else {
|
} else if (unlikely((rc = mdbx_node_read(mc, node, data,
|
||||||
if (mc->mc_xcursor)
|
pp_txnid4chk(mc->mc_pg[mc->mc_top],
|
||||||
mc->mc_xcursor->mx_cursor.mc_flags &= ~(C_INITIALIZED | C_EOF);
|
mc->mc_txn))) !=
|
||||||
if (unlikely((rc = mdbx_node_read(
|
MDBX_SUCCESS))
|
||||||
mc, node, data,
|
return rc;
|
||||||
pp_txnid4chk(mc->mc_pg[mc->mc_top], mc->mc_txn))) !=
|
|
||||||
MDBX_SUCCESS))
|
|
||||||
return rc;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The key already matches in all other cases */
|
/* The key already matches in all other cases */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user