mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-21 07:09:34 -05:00
mdb_txn_renew(): Clear error from previous txn
This commit is contained in:
parent
dce0911b17
commit
f46b642b06
1 changed files with 1 additions and 0 deletions
|
|
@ -2491,6 +2491,7 @@ mdb_txn_renew0(MDB_txn *txn)
|
||||||
int rc, new_notls = 0;
|
int rc, new_notls = 0;
|
||||||
|
|
||||||
if (txn->mt_flags & MDB_TXN_RDONLY) {
|
if (txn->mt_flags & MDB_TXN_RDONLY) {
|
||||||
|
txn->mt_flags = MDB_TXN_RDONLY;
|
||||||
/* Setup db info */
|
/* Setup db info */
|
||||||
txn->mt_numdbs = env->me_numdbs;
|
txn->mt_numdbs = env->me_numdbs;
|
||||||
txn->mt_dbxs = env->me_dbxs; /* mostly static anyway */
|
txn->mt_dbxs = env->me_dbxs; /* mostly static anyway */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue