mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 14:10:39 -05:00
Init "locked" flag for SysV semaphores
This commit is contained in:
parent
c367c1f696
commit
53a0fdf1be
1 changed files with 2 additions and 0 deletions
|
|
@ -4960,6 +4960,8 @@ mdb_env_setup_locks(MDB_env *env, char *lpath, int mode, int *excl)
|
|||
if (semctl(semid, 0, SETALL, semu) < 0)
|
||||
goto fail_errno;
|
||||
env->me_txns->mti_semid = semid;
|
||||
env->me_txns->mti_rlocked = 0;
|
||||
env->me_txns->mti_wlocked = 0;
|
||||
#else /* MDB_USE_POSIX_MUTEX: */
|
||||
pthread_mutexattr_t mattr;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue