Fix previous commit

vmware
Howard Chu 13 years ago
parent 6ac14938e2
commit dac3fae3b5
  1. 3
      libraries/libmdb/mdb.c

@ -4105,7 +4105,8 @@ newsep:
rc = mdb_add_node(mc, j, &rkey, &rdata, pgno, flags); rc = mdb_add_node(mc, j, &rkey, &rdata, pgno, flags);
} }
if (mc->mc_pg[mc->mc_top] == copy) /* reset back to original page */
if (newindx < split_indx)
mc->mc_pg[mc->mc_top] = mp; mc->mc_pg[mc->mc_top] = mp;
nkeys = NUMKEYS(copy); nkeys = NUMKEYS(copy);

Loading…
Cancel
Save