From: Quanah Gibson-Mount Date: Fri, 26 Sep 2008 21:42:21 +0000 (+0000) Subject: Message waiting for N threads to terminate -> for N operations/tasks to finish X-Git-Tag: OPENLDAP_REL_ENG_2_4_12~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1aa83bcf9a2799316781e47aacb55fdc9105c8d2;p=openldap Message waiting for N threads to terminate -> for N operations/tasks to finish --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 20375a7beb..f5555d6a18 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -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 );