]> git.sur5r.net Git - openldap/commitdiff
rq_mutex placing fix
authorJong Hyuk Choi <jongchoi@openldap.org>
Mon, 13 Oct 2003 14:08:55 +0000 (14:08 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Mon, 13 Oct 2003 14:08:55 +0000 (14:08 +0000)
servers/slapd/daemon.c

index c8283828bd803cb98a7c1560727094555806e622..88f82e732210cf46906fde286b3fbf249101fe5d 100644 (file)
@@ -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 );