]> git.sur5r.net Git - openldap/commitdiff
mdb_txn_renew(): Clear error from previous txn
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 8 Apr 2015 19:47:24 +0000 (21:47 +0200)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 8 Apr 2015 19:47:24 +0000 (21:47 +0200)
libraries/liblmdb/mdb.c

index 213842a6e49e84d1ff091e1cbc064c67661be54c..8c69e9fa43e10be12a6fa0021f542e359bf3d94b 100644 (file)
@@ -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 */