diff --git a/CHANGES b/CHANGES index aba1a092..134149d3 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/mdb.c b/mdb.c index f906ab72..0c5e6f35 100644 --- a/mdb.c +++ b/mdb.c @@ -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;