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
a87c8fd8
Commit
a87c8fd8
authored
Jan 14, 2017
by
Howard Chu
Browse files
Further fix
f8ce8a82
Fully revert the change to GET_MULTIPLE
parent
2e1d1047
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
a87c8fd8
...
...
@@ -6346,16 +6346,9 @@ mdb_cursor_get(MDB_cursor *mc, MDB_val *key, MDB_val *data,
break
;
}
rc
=
MDB_SUCCESS
;
if
(
!
(
mc
->
mc_xcursor
->
mx_cursor
.
mc_flags
&
C_INITIALIZED
))
if
(
!
(
mc
->
mc_xcursor
->
mx_cursor
.
mc_flags
&
C_INITIALIZED
)
||
(
mc
->
mc_xcursor
->
mx_cursor
.
mc_flags
&
C_EOF
))
break
;
if
(
mc
->
mc_xcursor
->
mx_cursor
.
mc_flags
&
C_EOF
)
{
MDB_cursor
*
mx
=
&
mc
->
mc_xcursor
->
mx_cursor
;
if
(
mx
->
mc_ki
[
mx
->
mc_top
]
>=
NUMKEYS
(
mx
->
mc_pg
[
mx
->
mc_top
])
-
1
)
{
rc
=
MDB_NOTFOUND
;
break
;
}
mx
->
mc_flags
^=
C_EOF
;
}
goto
fetchm
;
case
MDB_NEXT_MULTIPLE
:
if
(
data
==
NULL
)
{
...
...
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