Merge remote branch 'origin/mdb.master'

This commit is contained in:
Howard Chu 2011-09-08 10:11:30 -07:00
commit cb24efd287

View File

@ -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);