mdbx: backport - ITS#8313 more for ITS#8062.

dummy flags must be init'd due to 3d46d550

Change-Id: I3d543bd3e059da9b007f1e752f20171acc183679
This commit is contained in:
Howard Chu 2015-11-18 21:33:51 +00:00 committed by Leo Yuriev
parent 86abc397e8
commit 12cd2361e7
2 changed files with 2 additions and 0 deletions

View File

@ -18,6 +18,7 @@ LMDB 0.9.17 Release Engineering
Fix ITS#7969 use __sync_synchronize on non-x86
Fix ITS#8311 page_split from update_key
Fix ITS#8312 loose pages in nested txn
Fix ITS#8313 mdb_rebalance dummy cursor
Added mdb_txn_id() (ITS#7994)
Added robust mutex support
Miscellaneous cleanup/simplification

1
mdb.c
View File

@ -8199,6 +8199,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;