Revert 1.410, i.e back to lock again. ITS#5725 fixes the lock situation.

This commit is contained in:
Rein Tollevik 2008-10-05 19:29:00 +00:00
parent d2c08ebb4f
commit c5f584e62b

View File

@ -1214,9 +1214,8 @@ do_syncrepl(
if ( si == NULL )
return NULL;
/* There must never be more than one instance active */
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: