]> git.sur5r.net Git - openldap/commitdiff
Add diagnostics.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 4 Jun 1999 21:43:06 +0000 (21:43 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 4 Jun 1999 21:43:06 +0000 (21:43 +0000)
servers/slapd/connection.c

index 126b4b6d21bd23b78584c9eb3a204d9125d0db21..c7dc29d8aa0b06391dc4cd76e281f2f29cad32b8 100644 (file)
@@ -211,6 +211,9 @@ long connection_init(
        assert( connections != NULL );
 
        if( s < 0 ) {
+        Debug( LDAP_DEBUG_ANY,
+                       "connection_init(%d): invalid.\n",
+                       s );
                return -1;
        }
 
@@ -247,6 +250,9 @@ long connection_init(
         }
 
         if( c == NULL ) {
+               Debug( LDAP_DEBUG_ANY,
+                               "connection_init(%d): connection table full (%d/%d).\n",
+                               s, i, dtblsize);
             ldap_pvt_thread_mutex_unlock( &connections_mutex );
             return -1;
         }