]> git.sur5r.net Git - openldap/commitdiff
Drop UNLOCK_MUTEX_R() on mdb_reader_pid() error
authorHallvard Furuseth <hallvard@openldap.org>
Sun, 29 Dec 2013 13:52:30 +0000 (14:52 +0100)
committerHallvard Furuseth <hallvard@openldap.org>
Sun, 29 Dec 2013 13:52:30 +0000 (14:52 +0100)
libraries/liblmdb/mdb.c

index c2c374bbc593cb536cac1392cece210cf23e11c5..a8d0428ad29783a48653426388fc63f90aa38cca 100644 (file)
@@ -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;
                                }