From c5f584e62bf446efb1644caced92af31194fed42 Mon Sep 17 00:00:00 2001 From: Rein Tollevik Date: Sun, 5 Oct 2008 19:29:00 +0000 Subject: [PATCH] Revert 1.410, i.e back to lock again. ITS#5725 fixes the lock situation. --- servers/slapd/syncrepl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 4ceabf64a3..15612e6fca 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -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: -- 2.39.5