Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
34459e05
Commit
34459e05
authored
Oct 31, 2013
by
Howard Chu
Browse files
ITS#7589 another mdb_page_split fix
Tweak split_indx check, go one slot further.
parent
e31983c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/mdb.c
View file @
34459e05
...
...
@@ -7542,7 +7542,7 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno
psize
=
0
;
if
(
newindx
<=
split_indx
||
newindx
>=
nkeys
)
{
i
=
0
;
j
=
1
;
k
=
newindx
>=
nkeys
?
nkeys
:
split_indx
+
1
;
k
=
newindx
>=
nkeys
?
nkeys
:
split_indx
+
2
;
}
else
{
i
=
nkeys
;
j
=
-
1
;
k
=
split_indx
-
1
;
...
...
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