SLAP_OP_LAST dependent code needs to be behind SLAP_MONITOR

This commit is contained in:
Kurt Zeilenga 2002-04-09 23:54:45 +00:00
parent d051fe21d2
commit 63c9dd8280

View file

@ -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 )