mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 16:49:39 -05:00
ITS#5454 regular mutex lock is safe
This commit is contained in:
parent
f7070f80ac
commit
61b5f6d652
1 changed files with 2 additions and 3 deletions
|
|
@ -1174,9 +1174,8 @@ do_syncrepl(
|
|||
if ( si == NULL )
|
||||
return NULL;
|
||||
|
||||
/* Don't wait around if there's a previous session still running */
|
||||
if ( ldap_pvt_thread_mutex_trylock( &si->si_mutex ))
|
||||
return NULL;
|
||||
/* There will never be more than one instance active */
|
||||
ldap_pvt_thread_mutex_lock( &si->si_mutex );
|
||||
|
||||
switch( abs( si->si_type ) ) {
|
||||
case LDAP_SYNC_REFRESH_ONLY:
|
||||
|
|
|
|||
Loading…
Reference in a new issue