]> git.sur5r.net Git - openldap/commitdiff
SLAP_OP_LAST dependent code needs to be behind SLAP_MONITOR
authorKurt Zeilenga <kurt@openldap.org>
Tue, 9 Apr 2002 23:54:45 +0000 (23:54 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 9 Apr 2002 23:54:45 +0000 (23:54 +0000)
servers/slapd/init.c

index 7bdae990b383fd7c82a123f2dca7c2f5143f91c4..c96040e39238a078aa15826e4bc684b6a4e67ec3 100644 (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 )