]> git.sur5r.net Git - openldap/commitdiff
ITS#8312 Fix loose pages in commit(nested txn)
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 18 Nov 2015 15:30:24 +0000 (16:30 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 18 Nov 2015 15:30:24 +0000 (16:30 +0100)
libraries/liblmdb/mdb.c

index 6bd025d2bfbe994c1522ae17d0a712b796482cd3..a0ae06c729639b769ad9acfc39db296724ef034d 100644 (file)
@@ -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;