Drop UNLOCK_MUTEX_R() on mdb_reader_pid() error

vmware
Hallvard Furuseth 11 years ago
parent 4c8f57615c
commit c91f38160c
  1. 4
      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;
}

Loading…
Cancel
Save