]> git.sur5r.net Git - openldap/commitdiff
mdb_page_unspill(): Fix dirty_room in nested txn
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 25 Aug 2013 21:59:58 +0000 (23:59 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 25 Aug 2013 21:59:58 +0000 (23:59 +0200)
libraries/liblmdb/mdb.c

index c56d09266ca62bf32e10ada682cd058fa41d3dfb..e34f7951b30c76da5a5f348a0e05eabe4a0a57fc 100644 (file)
@@ -1847,7 +1847,7 @@ mdb_page_unspill(MDB_txn *tx0, MDB_page *mp, MDB_page **ret)
                                        x = mdb_mid2l_search(tx2->mt_u.dirty_list, pgno);
                                        if (x <= tx2->mt_u.dirty_list[0].mid &&
                                                tx2->mt_u.dirty_list[x].mid == pgno) {
-                                               txn->mt_dirty_room++;
+                                               tx0->mt_dirty_room++;
                                                break;
                                        }
                                }