]> git.sur5r.net Git - openldap/commitdiff
MDB_VL32 mdb_page_get(): Set MDB_TXN_ERROR on failure.
authorHallvard Furuseth <hallvard@openldap.org>
Fri, 2 Dec 2016 05:20:29 +0000 (06:20 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Fri, 2 Dec 2016 06:00:08 +0000 (07:00 +0100)
libraries/liblmdb/mdb.c

index ea0b8ef21f0295c214ca16320aef5d46c66b3c11..4a79ae13f05328870f0558063355beddfbce3665 100644 (file)
@@ -6150,8 +6150,10 @@ mapped:
        {
 #ifdef MDB_VL32
                int rc = mdb_rpage_get(txn, pgno, &p);
-               if (rc)
+               if (rc) {
+                       txn->mt_flags |= MDB_TXN_ERROR;
                        return rc;
+               }
 #else
                MDB_env *env = txn->mt_env;
                p = (MDB_page *)(env->me_map + env->me_psize * pgno);