mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ITS#7589 another mdb_page_split fix
Tweak split_indx check, go one slot further.
This commit is contained in:
parent
e31983c723
commit
34459e0585
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user