Should probably compare nsize to pg_size/4 instead...
}
nkeys = NUMKEYS(mp);
- split_indx = nkeys / 2 + 1;
+ split_indx = (nkeys + 1) / 2;
if (IS_LEAF2(rp)) {
char *split, *ins;
* When the size of the data items is much smaller than
* one-half of a page, this check is irrelevant.
*/
- if (IS_LEAF(mp) && nkeys < 4) {
+ if (IS_LEAF(mp) && nkeys < 16) {
unsigned int psize, nsize;
/* Maximum free space in an empty page */
pmax = mc->mc_txn->mt_env->me_psize - PAGEHDRSZ;