mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#5776 prevent duplicate removal of qtask from runqueue.
This commit is contained in:
parent
f5c154408b
commit
7ec3743aa5
@ -908,6 +908,10 @@ syncprov_qplay( Operation *op, struct re_s *rtask )
|
|||||||
} else {
|
} else {
|
||||||
/* bail out on any error */
|
/* bail out on any error */
|
||||||
ldap_pvt_runqueue_remove( &slapd_rq, rtask );
|
ldap_pvt_runqueue_remove( &slapd_rq, rtask );
|
||||||
|
|
||||||
|
/* Prevent duplicate remove */
|
||||||
|
if ( so->s_qtask == rtask )
|
||||||
|
so->s_qtask = NULL;
|
||||||
}
|
}
|
||||||
ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex );
|
ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex );
|
||||||
ldap_pvt_thread_mutex_unlock( &so->s_mutex );
|
ldap_pvt_thread_mutex_unlock( &so->s_mutex );
|
||||||
|
Loading…
Reference in New Issue
Block a user