From: Hallvard Furuseth Date: Wed, 18 Nov 2015 15:30:24 +0000 (+0100) Subject: ITS#8312 Fix loose pages in commit(nested txn) X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d140b92ee3b12d293120c04e6b61e395bbec089;p=openldap ITS#8312 Fix loose pages in commit(nested txn) --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 6bd025d2bf..a0ae06c729 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -3543,7 +3543,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;