From: Kurt Zeilenga Date: Mon, 22 Mar 1999 19:39:54 +0000 (+0000) Subject: Add trace to connection_get() to aid debugging. X-Git-Tag: OPENLDAP_SLAPD_BACK_LDAP~346 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f8b9b03d53387974eb177f5c35ce031f6d186e6b;p=openldap Add trace to connection_get() to aid debugging. --- diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index 4f2a5cec00..eb459637ce 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -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;