From: Hallvard Furuseth Date: Sun, 29 Dec 2013 13:52:30 +0000 (+0100) Subject: Drop UNLOCK_MUTEX_R() on mdb_reader_pid() error X-Git-Tag: OPENLDAP_REL_ENG_2_4_39~21^2~15 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c91f38160cdd2238d46bb0f3a307eb1d807cad41;p=openldap Drop UNLOCK_MUTEX_R() on mdb_reader_pid() error --- diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index c2c374bbc5..a8d0428ad2 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -2202,10 +2202,8 @@ mdb_txn_renew0(MDB_txn *txn) if (!(env->me_flags & MDB_LIVE_READER)) { rc = mdb_reader_pid(env, Pidset, pid); - if (rc) { - UNLOCK_MUTEX_R(env); + if (rc) return rc; - } env->me_flags |= MDB_LIVE_READER; }