mdb_txn_renew(): Clear error from previous txn

vl32b
Hallvard Furuseth 10 years ago
parent d2dab3c905
commit 49bb9e82e8
  1. 1
      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 */

Loading…
Cancel
Save