]> git.sur5r.net Git - openldap/commitdiff
ITS#8238 fix DUPFIXED page_split
authorHoward Chu <hyc@openldap.org>
Wed, 4 Nov 2015 18:11:12 +0000 (18:11 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 4 Nov 2015 18:11:12 +0000 (18:11 +0000)
Parent mc_ki wasn't adjusted if new_indx was > split point

libraries/liblmdb/mdb.c

index 8940fdf8be6aa02a95a6b0921bccbb17e6ca7fe6..0bff10e75933687912cb62909bf0f3e6bbac2efd 100644 (file)
@@ -8298,6 +8298,7 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno
                                rp->mp_upper -= ksize - sizeof(indx_t);
                                mc->mc_ki[mc->mc_top] = x;
                                mc->mc_pg[mc->mc_top] = rp;
+                               mc->mc_ki[ptop]++;
                        }
                } else {
                        int psize, nsize, k;