]> git.sur5r.net Git - openldap/commitdiff
Add trace to connection_get() to aid debugging.
authorKurt Zeilenga <kurt@openldap.org>
Mon, 22 Mar 1999 19:39:54 +0000 (19:39 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 22 Mar 1999 19:39:54 +0000 (19:39 +0000)
servers/slapd/connection.c

index 4f2a5cec0073a3806518c35b762cd18a5b7a8100..eb459637ce4311c0d1bf28dac4332036556f190d 100644 (file)
@@ -107,7 +107,13 @@ static Connection* connection_get( int s )
                }
        }
 #endif
+
        if( c != NULL ) {
+               /* we do this BEFORE locking to aid in debugging */
+               Debug( LDAP_DEBUG_TRACE,
+                       "connection_get(%d): got connid=%ld\n",
+                       s, c->c_connid, 0 );
+
                ldap_pvt_thread_mutex_lock( &c->c_mutex );
        }
        return c;