mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-13 18:33:04 -05:00
ITS#10095 partial revert of ITS#9278 2fd44e3251
The patch was incorrect and introduced numerous race conditions. The original problem was a FreeBSD bug, subsequently fixed: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269277
This commit is contained in:
parent
392d6b53de
commit
ce200dca1d
1 changed files with 0 additions and 11 deletions
|
|
@ -5162,17 +5162,6 @@ mdb_env_close0(MDB_env *env, int excl)
|
|||
sem_unlink(env->me_txns->mti_wmname);
|
||||
}
|
||||
}
|
||||
#elif defined(MDB_ROBUST_SUPPORTED)
|
||||
/* If we have the filelock: If we are the
|
||||
* only remaining user, clean up robust
|
||||
* mutexes.
|
||||
*/
|
||||
if (excl == 0)
|
||||
mdb_env_excl_lock(env, &excl);
|
||||
if (excl > 0) {
|
||||
pthread_mutex_destroy(env->me_txns->mti_rmutex);
|
||||
pthread_mutex_destroy(env->me_txns->mti_wmutex);
|
||||
}
|
||||
#endif
|
||||
munmap((void *)env->me_txns, (env->me_maxreaders-1)*sizeof(MDB_reader)+sizeof(MDB_txninfo));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue