mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 14:42:10 -05:00
ITS#9119 fix global operation counter reporting
This commit is contained in:
parent
4d7be1c161
commit
63922b076c
1 changed files with 4 additions and 8 deletions
|
|
@ -189,16 +189,12 @@ monitor_subsys_ops_update(
|
|||
ldap_pvt_mp_init( nCompleted );
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &slap_counters.sc_mutex );
|
||||
for ( i = 0; i < SLAP_OP_LAST; i++ ) {
|
||||
ldap_pvt_mp_add( nInitiated, slap_counters.sc_ops_initiated_[ i ] );
|
||||
ldap_pvt_mp_add( nCompleted, slap_counters.sc_ops_completed_[ i ] );
|
||||
}
|
||||
ldap_pvt_mp_add( nInitiated, slap_counters.sc_ops_initiated );
|
||||
ldap_pvt_mp_add( nCompleted, slap_counters.sc_ops_completed );
|
||||
for ( sc = slap_counters.sc_next; sc; sc = sc->sc_next ) {
|
||||
ldap_pvt_thread_mutex_lock( &sc->sc_mutex );
|
||||
for ( i = 0; i < SLAP_OP_LAST; i++ ) {
|
||||
ldap_pvt_mp_add( nInitiated, sc->sc_ops_initiated_[ i ] );
|
||||
ldap_pvt_mp_add( nCompleted, sc->sc_ops_completed_[ i ] );
|
||||
}
|
||||
ldap_pvt_mp_add( nInitiated, sc->sc_ops_initiated );
|
||||
ldap_pvt_mp_add( nCompleted, sc->sc_ops_completed );
|
||||
ldap_pvt_thread_mutex_unlock( &sc->sc_mutex );
|
||||
}
|
||||
ldap_pvt_thread_mutex_unlock( &slap_counters.sc_mutex );
|
||||
|
|
|
|||
Loading…
Reference in a new issue