goto cleanup;
}
- /* ldap_pvt_thread_mutex_lock( &slap_counters.sc_sent_mutex ); */
+ ldap_pvt_thread_mutex_lock( &slap_counters.sc_sent_mutex );
ldap_pvt_mp_add_ulong( slap_counters.sc_pdu, 1 );
ldap_pvt_mp_add_ulong( slap_counters.sc_bytes, (unsigned long)bytes );
- /* ldap_pvt_thread_mutex_unlock( &slap_counters.sc_sent_mutex ); */
+ ldap_pvt_thread_mutex_unlock( &slap_counters.sc_sent_mutex );
cleanup:;
/* Tell caller that we did this for real, as opposed to being
}
rs->sr_nentries++;
- /* ldap_pvt_thread_mutex_lock( &slap_counters.sc_sent_mutex ); */
+ ldap_pvt_thread_mutex_lock( &slap_counters.sc_sent_mutex );
ldap_pvt_mp_add_ulong( slap_counters.sc_bytes, (unsigned long)bytes );
ldap_pvt_mp_add_ulong( slap_counters.sc_entries, 1 );
ldap_pvt_mp_add_ulong( slap_counters.sc_pdu, 1 );
- /* ldap_pvt_thread_mutex_unlock( &slap_counters.sc_sent_mutex ); */
+ ldap_pvt_thread_mutex_unlock( &slap_counters.sc_sent_mutex );
}
Statslog( LDAP_DEBUG_STATS2, "%s ENTRY dn=\"%s\"\n",
if ( bytes < 0 ) {
rc = LDAP_UNAVAILABLE;
} else {
- /* ldap_pvt_thread_mutex_lock( &slap_counters.sc_sent_mutex ); */
+ ldap_pvt_thread_mutex_lock( &slap_counters.sc_sent_mutex );
ldap_pvt_mp_add_ulong( slap_counters.sc_bytes, (unsigned long)bytes );
ldap_pvt_mp_add_ulong( slap_counters.sc_refs, 1 );
ldap_pvt_mp_add_ulong( slap_counters.sc_pdu, 1 );
- /* ldap_pvt_thread_mutex_unlock( &slap_counters.sc_sent_mutex ); */
+ ldap_pvt_thread_mutex_unlock( &slap_counters.sc_sent_mutex );
}
#ifdef LDAP_CONNECTIONLESS
}