]> git.sur5r.net Git - openldap/commitdiff
Message waiting for N threads to terminate -> for N operations/tasks to finish
authorHallvard Furuseth <hallvard@openldap.org>
Thu, 18 Sep 2008 19:50:32 +0000 (19:50 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Thu, 18 Sep 2008 19:50:32 +0000 (19:50 +0000)
servers/slapd/daemon.c

index 20375a7beb60f74ec30d4f32c8759f9cfa7fca06..f5555d6a18e92c8e329f3eb1986e41aa8cb1e512 100644 (file)
@@ -2582,9 +2582,12 @@ slapd_daemon_task(
                connections_shutdown();
        }
 
-       Debug( LDAP_DEBUG_ANY,
-               "slapd shutdown: waiting for %d threads to terminate\n",
-               ldap_pvt_thread_pool_backload( &connection_pool ), 0, 0 );
+       if ( LogTest( LDAP_DEBUG_ANY )) {
+               int t = ldap_pvt_thread_pool_backload( &connection_pool );
+               Debug( LDAP_DEBUG_ANY,
+                       "slapd shutdown: waiting for %d operations/tasks to finish\n",
+                       t, 0, 0 );
+       }
        ldap_pvt_thread_pool_destroy( &connection_pool, 1 );
 
        free( slap_listeners );