Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
11308a19
Commit
11308a19
authored
Aug 18, 2011
by
Howard Chu
Browse files
Fix dupsort fetch
parent
697e00a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libmdb/mdb.c
View file @
11308a19
...
...
@@ -2008,7 +2008,8 @@ mdb_cursor_set(MDB_cursor *cursor, MDB_val *key, MDB_val *data,
cursor
->
mc_eof
=
0
;
if
(
data
)
{
if
((
rc
=
mdb_read_data
(
cursor
->
mc_txn
,
leaf
,
data
))
!=
MDB_SUCCESS
)
MDB_val
d2
;
if
((
rc
=
mdb_read_data
(
cursor
->
mc_txn
,
leaf
,
&
d2
))
!=
MDB_SUCCESS
)
return
rc
;
if
(
cursor
->
mc_txn
->
mt_dbs
[
cursor
->
mc_dbi
].
md_flags
&
MDB_DUPSORT
)
{
...
...
@@ -2029,7 +2030,10 @@ mdb_cursor_set(MDB_cursor *cursor, MDB_val *key, MDB_val *data,
if
(
rc
!=
MDB_SUCCESS
)
return
rc
;
}
}
else
{
*
data
=
d2
;
}
}
rc
=
mdb_set_key
(
leaf
,
key
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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