]> git.sur5r.net Git - openldap/commitdiff
ITS#7515 Fix mdb_page_unspill() in nested txn.
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Sep 2013 18:13:27 +0000 (20:13 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 23 Sep 2013 18:13:27 +0000 (20:13 +0200)
Malloc a page in this txn, not in a parent.

libraries/liblmdb/mdb.c

index 84429ee3d622d647ced1e11945fea3eef7072aa5..21d11b98dee800929a3cfcca008dba9c1be89565 100644 (file)
@@ -1818,7 +1818,7 @@ mdb_page_unspill(MDB_txn *tx0, MDB_page *mp, MDB_page **ret)
                        if (env->me_flags & MDB_WRITEMAP) {
                                np = mp;
                        } else {
-                               np = mdb_page_malloc(txn, num);
+                               np = mdb_page_malloc(tx0, num);
                                if (!np)
                                        return ENOMEM;
                                if (num > 1)