ITS#8313 more for ITS#8062

dummy flags must be init'd due to 3d46d550
This commit is contained in:
Howard Chu 2015-11-18 21:33:51 +00:00
parent 4d140b92ee
commit f08b70d0df

View file

@ -8176,6 +8176,7 @@ mdb_rebalance(MDB_cursor *mc)
mn.mc_ki[mn.mc_top] += mc->mc_ki[mn.mc_top] + 1;
/* We want mdb_rebalance to find mn when doing fixups */
if (mc->mc_flags & C_SUB) {
dummy.mc_flags = C_INITIALIZED;
dummy.mc_next = mc->mc_txn->mt_cursors[mc->mc_dbi];
mc->mc_txn->mt_cursors[mc->mc_dbi] = &dummy;
dummy.mc_xcursor = (MDB_xcursor *)&mn;