]> 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)
committerHoward Chu <hyc@openldap.org>
Thu, 19 Nov 2015 17:28:15 +0000 (17:28 +0000)
libraries/liblmdb/mdb.c

index fc0340c51e2e33fe22eb62adc3b5b779e13e9588..0c9ab93c5e06aa3a928bddc9750e8210f2c12f85 100644 (file)
@@ -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;