mdbx: микрооптимизация cursor_touch().

This commit is contained in:
Леонид Юрьев (Leonid Yuriev) 2024-03-07 19:25:19 +03:00
parent 5df3eb6449
commit a6f7d74a32

View File

@ -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);