From: Hallvard Furuseth Date: Fri, 2 Dec 2016 05:20:29 +0000 (+0100) Subject: MDB_VL32 mdb_page_get(): Set MDB_TXN_ERROR on failure. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=08e4684d37b45cff97ea0ba17573165a63fb622c;p=openldap MDB_VL32 mdb_page_get(): Set MDB_TXN_ERROR on failure. --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index ea0b8ef21f..4a79ae13f0 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -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);