From: Jong Hyuk Choi Date: Mon, 13 Oct 2003 14:08:55 +0000 (+0000) Subject: rq_mutex placing fix X-Git-Tag: OPENLDAP_REL_ENG_2_1_MP~579 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35455699e719fe81702cbe3aeec5dd93137b0fc9;p=openldap rq_mutex placing fix --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index c8283828bd..88f82e7322 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -1357,8 +1357,8 @@ slapd_daemon_task( ldap_pvt_thread_mutex_unlock( &syncrepl_rq.rq_mutex ); ldap_pvt_thread_pool_submit( &connection_pool, rtask->routine, (void *) rtask ); + ldap_pvt_thread_mutex_lock( &syncrepl_rq.rq_mutex ); } - ldap_pvt_thread_mutex_lock( &syncrepl_rq.rq_mutex ); rtask = ldap_pvt_runqueue_next_sched( &syncrepl_rq, &cat ); } ldap_pvt_thread_mutex_unlock( &syncrepl_rq.rq_mutex );