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
Joe Martin
OpenLDAP
Commits
01b9fc59
Commit
01b9fc59
authored
Aug 26, 2011
by
Howard Chu
Browse files
Fix update of big data items
parent
13c663f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/libmdb/mdb.c
View file @
01b9fc59
...
...
@@ -3469,7 +3469,8 @@ mdb_put0(MDB_txn *txn, MDB_dbi dbi,
goto
put_sub
;
}
/* same size, just replace it */
if
(
NODEDSZ
(
leaf
)
==
data
->
mv_size
)
{
if
(
!
F_ISSET
(
leaf
->
mn_flags
,
F_BIGDATA
)
&&
NODEDSZ
(
leaf
)
==
data
->
mv_size
)
{
memcpy
(
NODEDATA
(
leaf
),
data
->
mv_data
,
data
->
mv_size
);
goto
done
;
}
...
...
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