Revert 1.394, see ITS#5454. It still locks up without a trylock.

This commit is contained in:
Howard Chu 2008-09-25 10:31:49 +00:00
parent 4788d897d2
commit a49d43ca27

View file

@ -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: