]> git.sur5r.net Git - openldap/commitdiff
Add comment concerning connections mutex. Need to analysis
authorKurt Zeilenga <kurt@openldap.org>
Thu, 27 May 1999 02:29:18 +0000 (02:29 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 27 May 1999 02:29:18 +0000 (02:29 +0000)
locking requires and possibly restructure locking.

servers/slapd/connection.c

index e06553013719c057a23562820603a25f7741d024..4d8d339e6e1995b3885a373aad8524b880d30fb9 100644 (file)
@@ -318,6 +318,8 @@ long connection_init(
 static void
 connection_destroy( Connection *c )
 {
+       /* note: connections_mutex should be locked by caller */
+
     assert( connections != NULL );
     assert( c != NULL );
     assert( c->c_struct_state != SLAP_C_UNUSED );
@@ -429,6 +431,8 @@ static void connection_close( Connection *c )
        assert( c->c_struct_state == SLAP_C_USED );
        assert( c->c_conn_state == SLAP_C_CLOSING );
 
+       /* note: connections_mutex should be locked by caller */
+
        if( c->c_ops != NULL ) {
                Debug( LDAP_DEBUG_TRACE,
                        "connection_close: deferring conn=%ld sd=%d.\n",