From: Howard Chu Date: Fri, 19 Sep 2014 00:45:43 +0000 (+0100) Subject: ITS#7943 reinit txn flags X-Git-Tag: OPENLDAP_REL_ENG_2_4_40^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=62e4eeb7f7baa2c0ecd03f95aff4cc5037e94557;p=openldap ITS#7943 reinit txn flags When reusing the main write txn --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 7ddb36e200..6cc343326e 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -2626,6 +2626,7 @@ mdb_txn_begin(MDB_env *env, MDB_txn *parent, unsigned int flags, MDB_txn **ret) if (!(flags & MDB_RDONLY)) { if (!parent) { txn = env->me_txn0; + txn->mt_flags = 0; goto ok; } size += env->me_maxdbs * sizeof(MDB_cursor *);