mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-08 08:02:16 -05:00
Don't try to use runqueue in SLAP_TOOL_MODE
This commit is contained in:
parent
779b3ba801
commit
464af5aeeb
1 changed files with 7 additions and 4 deletions
|
|
@ -1870,10 +1870,13 @@ proxy_cache_open(
|
|||
rc = cm->db.bd_info->bi_db_open( &cm->db );
|
||||
}
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &syncrepl_rq.rq_mutex );
|
||||
ldap_pvt_runqueue_insert( &syncrepl_rq, cm->cc_period,
|
||||
consistency_check, on );
|
||||
ldap_pvt_thread_mutex_unlock( &syncrepl_rq.rq_mutex );
|
||||
/* There is no runqueue in TOOL mode */
|
||||
if ( slapMode & SLAP_SERVER_MODE ) {
|
||||
ldap_pvt_thread_mutex_lock( &syncrepl_rq.rq_mutex );
|
||||
ldap_pvt_runqueue_insert( &syncrepl_rq, cm->cc_period,
|
||||
consistency_check, on );
|
||||
ldap_pvt_thread_mutex_unlock( &syncrepl_rq.rq_mutex );
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue