mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
Revert 1.394, see ITS#5454. It still locks up without a trylock.
This commit is contained in:
parent
4788d897d2
commit
a49d43ca27
1 changed files with 3 additions and 2 deletions
|
|
@ -1214,8 +1214,9 @@ do_syncrepl(
|
|||
if ( si == NULL )
|
||||
return NULL;
|
||||
|
||||
/* There will never be more than one instance active */
|
||||
ldap_pvt_thread_mutex_lock( &si->si_mutex );
|
||||
/* There must never be more than one instance active */
|
||||
if ( ldap_pvt_thread_mutex_trylock( &si->si_mutex ))
|
||||
return NULL;
|
||||
|
||||
switch( abs( si->si_type ) ) {
|
||||
case LDAP_SYNC_REFRESH_ONLY:
|
||||
|
|
|
|||
Loading…
Reference in a new issue