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-Tag: LMDB_0.9.17~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=db510359c9c8398cd95ffc750e4739f4a165e6a7;p=openldap ITS#8312 Fix loose pages in commit(nested txn) --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index fc0340c51e..0c9ab93c5e 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -3474,7 +3474,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;