mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-29 23:19:20 +08:00
mdbx: микрооптимизация cursor_touch()
.
This commit is contained in:
parent
5df3eb6449
commit
a6f7d74a32
@ -17940,7 +17940,8 @@ static __hot int cursor_touch(MDBX_cursor *const mc, const MDBX_val *key,
|
||||
}
|
||||
|
||||
int rc = MDBX_SUCCESS;
|
||||
if (likely(mc->mc_snum)) {
|
||||
if (likely(mc->mc_snum) &&
|
||||
!IS_MODIFIABLE(mc->mc_txn, mc->mc_pg[mc->mc_snum - 1])) {
|
||||
mc->mc_top = 0;
|
||||
do {
|
||||
rc = page_touch(mc);
|
||||
|
Loading…
Reference in New Issue
Block a user