From 4dd10d70a5f62cb68046efaf4dcb5edd806aa851 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Sun, 25 Aug 2013 23:59:58 +0200 Subject: [PATCH] mdb_page_unspill(): Fix dirty_room in nested txn --- libraries/liblmdb/mdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index c56d092..e34f795 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; } }