*/
ldap_pvt_thread_mutex_t entry2str_mutex;
ldap_pvt_thread_mutex_t replog_mutex;
+ldap_pvt_thread_mutex_t repstamp_mutex;
static const char* slap_name = NULL;
int slapMode = SLAP_UNDEFINED_MODE;
ldap_pvt_thread_mutex_init( &entry2str_mutex );
ldap_pvt_thread_mutex_init( &replog_mutex );
+ ldap_pvt_thread_mutex_init( &repstamp_mutex );
ldap_pvt_thread_mutex_init( &num_ops_mutex );
ldap_pvt_thread_mutex_init( &num_sent_mutex );
LDAP_SLAPD_V (ldap_pvt_thread_mutex_t) entry2str_mutex;
LDAP_SLAPD_V (ldap_pvt_thread_mutex_t) replog_mutex;
+LDAP_SLAPD_V (ldap_pvt_thread_mutex_t) repstamp_mutex;
#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
LDAP_SLAPD_V (ldap_pvt_thread_mutex_t) passwd_mutex;
void
repstamp( Operation *op )
{
- ldap_pvt_thread_mutex_lock( &replog_mutex );
+ ldap_pvt_thread_mutex_lock( &repstamp_mutex );
op->o_time = slap_get_time();
if ( op->o_time == oldstamp.time ) {
op->o_tseq = ++oldstamp.seq;
oldstamp.seq = 0;
op->o_tseq = 0;
}
- ldap_pvt_thread_mutex_unlock( &replog_mutex );
+ ldap_pvt_thread_mutex_unlock( &repstamp_mutex );
}
void