From: Kurt Zeilenga Date: Tue, 9 Apr 2002 23:54:45 +0000 (+0000) Subject: SLAP_OP_LAST dependent code needs to be behind SLAP_MONITOR X-Git-Tag: OPENLDAP_REL_ENG_2_MP~235 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63c9dd8280c150f22618233b693abcf832f145f7;p=openldap SLAP_OP_LAST dependent code needs to be behind SLAP_MONITOR --- diff --git a/servers/slapd/init.c b/servers/slapd/init.c index 7bdae990b3..c96040e392 100644 --- a/servers/slapd/init.c +++ b/servers/slapd/init.c @@ -115,6 +115,7 @@ slap_init( int mode, const char *name ) ldap_pvt_thread_mutex_init( &num_ops_mutex ); ldap_pvt_thread_mutex_init( &num_sent_mutex ); +#ifdef SLAPD_MONITOR { int i; for ( i = 0; i < SLAP_OP_LAST; i++ ) { @@ -122,6 +123,7 @@ slap_init( int mode, const char *name ) num_ops_completed_[ i ] = 0; } } +#endif ldap_pvt_thread_mutex_init( &gmtime_mutex ); #if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )