Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
orbea -
OpenLDAP
Commits
f6514da3
Commit
f6514da3
authored
Sep 11, 2017
by
Hallvard Furuseth
Committed by
Quanah Gibson-Mount
Feb 11, 2018
Browse files
Tweak ITS#8722 fix: Use XCURSOR_REFRESH()
This checks XCURSOR_INITED() and fixes the mn_flags check.
parent
40daa8e7
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
f6514da3
...
...
@@ -7084,13 +7084,7 @@ mdb_cursor_del(MDB_cursor *mc, unsigned int flags)
if
(
m2
==
mc
||
m2
->
mc_snum
<
mc
->
mc_snum
)
continue
;
if
(
!
(
m2
->
mc_flags
&
C_INITIALIZED
))
continue
;
if
(
m2
->
mc_pg
[
mc
->
mc_top
]
==
mp
)
{
MDB_node
*
n2
=
leaf
;
if
(
m2
->
mc_ki
[
mc
->
mc_top
]
>=
NUMKEYS
(
mp
))
continue
;
if
(
m2
->
mc_ki
[
mc
->
mc_top
]
!=
mc
->
mc_ki
[
mc
->
mc_top
])
{
n2
=
NODEPTR
(
mp
,
m2
->
mc_ki
[
mc
->
mc_top
]);
if
(
n2
->
mn_flags
&
F_SUBDATA
)
continue
;
}
m2
->
mc_xcursor
->
mx_cursor
.
mc_pg
[
0
]
=
NODEDATA
(
n2
);
XCURSOR_REFRESH
(
m2
,
mc
->
mc_top
,
mp
);
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment