page_split with newindex > split_indx
vmware
Howard Chu 12 years ago
parent 5ef56b437e
commit 0a359fb629
  1. 5
      libraries/libmdb/mdb.c

@ -6128,9 +6128,10 @@ mdb_page_split(MDB_cursor *mc, MDB_val *newkey, MDB_val *newdata, pgno_t newpgno
psize += NODEDSZ(node); psize += NODEDSZ(node);
psize += psize & 1; psize += psize & 1;
if (psize > pmax) { if (psize > pmax) {
if (i >= newindx) if (i >= newindx) {
split_indx = newindx; split_indx = newindx;
else newpos = 0;
} else
split_indx = i+1; split_indx = i+1;
break; break;
} }

Loading…
Cancel
Save