From 08e4684d37b45cff97ea0ba17573165a63fb622c Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Fri, 2 Dec 2016 06:20:29 +0100 Subject: [PATCH] MDB_VL32 mdb_page_get(): Set MDB_TXN_ERROR on failure. --- libraries/liblmdb/mdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.39.5