From: Kurt Zeilenga Date: Fri, 22 Sep 2000 18:18:39 +0000 (+0000) Subject: Don't recursive lock connections_mutex in idle timeout routine X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1920 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f164e69baaed08a0c67cbe709b251b19fb146daa;p=openldap Don't recursive lock connections_mutex in idle timeout routine --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 67f20d9f25..700f384f5d 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -169,8 +169,6 @@ int connections_timeout_idle(time_t now) int connindex; Connection* c; - ldap_pvt_thread_mutex_lock( &connections_mutex ); - for( c = connection_first( &connindex ); c != NULL; c = connection_next( c, &connindex ) ) @@ -184,8 +182,6 @@ int connections_timeout_idle(time_t now) } connection_done( c ); - ldap_pvt_thread_mutex_unlock( &connections_mutex ); - return i; }