mdbx: backport - ITS#8312 Fix loose pages in commit(nested txn).

Change-Id: Ie335dcff0c87cfc13abf9b937f5d058d3ea9d841
This commit is contained in:
Hallvard Furuseth 2015-11-18 16:30:24 +01:00 committed by Leo Yuriev
parent f3043badc5
commit 86abc397e8
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ LMDB 0.9.17 Release Engineering
Fix ITS#7971 mdb_txn_renew0() new reader slots
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
Added mdb_txn_id() (ITS#7994)
Added robust mutex support
Miscellaneous cleanup/simplification

2
mdb.c
View File

@ -3786,7 +3786,7 @@ mdb_txn_commit(MDB_txn *txn)
}
/* Append our loose page list to parent's */
for (lp = &parent->mt_loose_pgs; *lp; lp = &NEXT_LOOSE_PAGE(lp))
for (lp = &parent->mt_loose_pgs; *lp; lp = &NEXT_LOOSE_PAGE(*lp))
;
*lp = txn->mt_loose_pgs;
parent->mt_loose_count += txn->mt_loose_count;