Skip to content
Snippets Groups Projects
Commit 88e2a06b authored by Howard Chu's avatar Howard Chu
Browse files

ITS#3151 always reschedule consistency_check task

parent 73fa8b7d
No related branches found
No related tags found
No related merge requests found
......@@ -1608,16 +1608,15 @@ consistency_check(
}
ldap_pvt_thread_mutex_unlock(&cm->remove_mutex);
}
/* If there were no queries, defer processing for a while */
if ( pause ) {
ldap_pvt_thread_mutex_lock( &syncrepl_rq.rq_mutex );
cm->cc_paused = 1;
if ( ldap_pvt_runqueue_isrunning( &syncrepl_rq, rtask )) {
ldap_pvt_runqueue_stoptask( &syncrepl_rq, rtask );
}
ldap_pvt_runqueue_resched( &syncrepl_rq, rtask, 1 );
ldap_pvt_thread_mutex_unlock( &syncrepl_rq.rq_mutex );
ldap_pvt_thread_mutex_lock( &syncrepl_rq.rq_mutex );
if ( ldap_pvt_runqueue_isrunning( &syncrepl_rq, rtask )) {
ldap_pvt_runqueue_stoptask( &syncrepl_rq, rtask );
}
/* If there were no queries, defer processing for a while */
cm->cc_paused = pause;
ldap_pvt_runqueue_resched( &syncrepl_rq, rtask, pause );
ldap_pvt_thread_mutex_unlock( &syncrepl_rq.rq_mutex );
return NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment