mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-30 22:47:16 +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;
|
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;
|
mc->mc_top = 0;
|
||||||
do {
|
do {
|
||||||
rc = page_touch(mc);
|
rc = page_touch(mc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user