Commit 68b73a20 authored by Howard Chu's avatar Howard Chu Committed by Quanah Gibson-Mount
Browse files

ITS#9456 fix asyncmeta_timeout_loop()

parent 4eb1942f
...@@ -267,7 +267,7 @@ asyncmeta_back_db_open( ...@@ -267,7 +267,7 @@ asyncmeta_back_db_open(
} }
mi->mi_suffix = be->be_suffix[0]; mi->mi_suffix = be->be_suffix[0];
ldap_pvt_thread_mutex_lock( &slapd_rq.rq_mutex ); ldap_pvt_thread_mutex_lock( &slapd_rq.rq_mutex );
mi->mi_task = ldap_pvt_runqueue_insert( &slapd_rq, 0, mi->mi_task = ldap_pvt_runqueue_insert( &slapd_rq, 1,
asyncmeta_timeout_loop, mi, "asyncmeta_timeout_loop", mi->mi_suffix.bv_val ); asyncmeta_timeout_loop, mi, "asyncmeta_timeout_loop", mi->mi_suffix.bv_val );
ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex ); ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex );
return 0; return 0;
......
...@@ -1809,9 +1809,6 @@ void* asyncmeta_timeout_loop(void *ctx, void *arg) ...@@ -1809,9 +1809,6 @@ void* asyncmeta_timeout_loop(void *ctx, void *arg)
if ( ldap_pvt_runqueue_isrunning( &slapd_rq, rtask )) { if ( ldap_pvt_runqueue_isrunning( &slapd_rq, rtask )) {
ldap_pvt_runqueue_stoptask( &slapd_rq, rtask ); ldap_pvt_runqueue_stoptask( &slapd_rq, rtask );
} }
rtask->interval.tv_sec = 1;
rtask->interval.tv_usec = 0;
ldap_pvt_runqueue_resched(&slapd_rq, rtask, 0);
ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex ); ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex );
return NULL; return NULL;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment