mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-02 00:34:13 +08:00
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:
parent
86abc397e8
commit
12cd2361e7
1
CHANGES
1
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
|
||||
|
1
mdb.c
1
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user