]> git.sur5r.net Git - openldap/commitdiff
Don't recursive lock connections_mutex in idle timeout routine
authorKurt Zeilenga <kurt@openldap.org>
Fri, 22 Sep 2000 18:18:39 +0000 (18:18 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 22 Sep 2000 18:18:39 +0000 (18:18 +0000)
servers/slapd/connection.c

index 67f20d9f2588fb5b2f1a884ae4dd830a71385f65..700f384f5dd831624a50fe4f6ebae3db11bf8440 100644 (file)
@@ -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;
 }