mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
ITS#8277 simpler check for syncrepl on config DB
Windows mutexes are recursive so the trylock test will succeed even though the mutex is already locked. Just compare be pointers.
This commit is contained in:
parent
c55d829aca
commit
ad93b9e652
1 changed files with 1 additions and 1 deletions
|
|
@ -5687,7 +5687,7 @@ syncrepl_config( ConfigArgs *c )
|
|||
* happen when running on the cn=config DB.
|
||||
*/
|
||||
if ( si->si_re ) {
|
||||
if ( ldap_pvt_thread_mutex_trylock( &si->si_mutex )) {
|
||||
if ( si->si_be == c->be || ldap_pvt_thread_mutex_trylock( &si->si_mutex )) {
|
||||
isrunning = 1;
|
||||
} else {
|
||||
/* There is no active thread, but we must still
|
||||
|
|
|
|||
Loading…
Reference in a new issue