From: Hallvard Furuseth Date: Sun, 25 Aug 2013 21:59:58 +0000 (+0200) Subject: mdb_page_unspill(): Fix dirty_room in nested txn X-Git-Tag: OPENLDAP_REL_ENG_2_4_37~39^2~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4dd10d70a5f62cb68046efaf4dcb5edd806aa851;p=openldap mdb_page_unspill(): Fix dirty_room in nested txn --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index c56d09266c..e34f7951b3 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -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; } }