mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 01:44:14 +08:00
lmdb: ITS#8237 fix ITS#7589 regression.
Change-Id: Idd3c95f6e515f0f70c7fd33257c80354a3953f2f
This commit is contained in:
parent
1b78961cf6
commit
83ba70e3be
2
mdb.c
2
mdb.c
@ -8313,7 +8313,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+2;
|
||||
k = newindx >= nkeys ? nkeys : split_indx+1+IS_LEAF(mp);
|
||||
} else {
|
||||
i = nkeys; j = -1;
|
||||
k = split_indx-1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user