From: Hallvard Furuseth Date: Wed, 8 Apr 2015 19:47:24 +0000 (+0200) Subject: mdb_txn_renew(): Clear error from previous txn X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=49bb9e82e866bd1b7851836b0b1b23934a7939b3;p=openldap mdb_txn_renew(): Clear error from previous txn --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 213842a6e4..8c69e9fa43 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -2570,6 +2570,7 @@ mdb_txn_renew0(MDB_txn *txn) int rc, new_notls = 0; if (txn->mt_flags & MDB_TXN_RDONLY) { + txn->mt_flags = MDB_TXN_RDONLY; /* Setup db info */ txn->mt_numdbs = env->me_numdbs; txn->mt_dbxs = env->me_dbxs; /* mostly static anyway */