mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:34:14 +08:00
mdbx: zeroed mc_top
while tracking nested cursors.
This avoids scanning dummy cursors during tracking. Change-Id: Id4edc665010215b4a946f9438475691f1387313c
This commit is contained in:
parent
0c78da99b0
commit
b209e91ad4
@ -3618,6 +3618,7 @@ static __maybe_unused bool cursor_is_tracked(const MDBX_cursor *mc) {
|
||||
MDBX_cursor *tracked = &(mn); \
|
||||
if ((mn).mc_flags & C_SUB) { \
|
||||
mc_dummy.mc_flags = C_INITIALIZED; \
|
||||
mc_dummy.mc_top = 0; \
|
||||
mc_dummy.mc_xcursor = (MDBX_xcursor *)&(mn); \
|
||||
tracked = &mc_dummy; \
|
||||
} \
|
||||
|
Loading…
x
Reference in New Issue
Block a user