mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
In do_syncrepl, don't wait if a previous syncrepl thread is still running.
This commit is contained in:
parent
8a7ae2def9
commit
f26657d81c
@ -1158,7 +1158,9 @@ do_syncrepl(
|
||||
if ( si == NULL )
|
||||
return NULL;
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &si->si_mutex );
|
||||
/* Don't wait around if there's a previous session still running */
|
||||
if ( ldap_pvt_thread_mutex_trylock( &si->si_mutex ))
|
||||
return NULL;
|
||||
|
||||
switch( abs( si->si_type ) ) {
|
||||
case LDAP_SYNC_REFRESH_ONLY:
|
||||
|
Loading…
Reference in New Issue
Block a user