mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-20 22:59:34 -05:00
Tweak prev commit, avoid referencing syncop when resetting qtask
This commit is contained in:
parent
c1fad2d603
commit
393e6e5ec0
1 changed files with 2 additions and 2 deletions
|
|
@ -906,9 +906,9 @@ syncprov_qtask( void *ctx, void *arg )
|
||||||
|
|
||||||
/* wait until we get explicitly scheduled again */
|
/* wait until we get explicitly scheduled again */
|
||||||
ldap_pvt_thread_mutex_lock( &slapd_rq.rq_mutex );
|
ldap_pvt_thread_mutex_lock( &slapd_rq.rq_mutex );
|
||||||
ldap_pvt_runqueue_stoptask( &slapd_rq, so->s_qtask );
|
ldap_pvt_runqueue_stoptask( &slapd_rq, rtask );
|
||||||
if ( rc == 0 ) {
|
if ( rc == 0 ) {
|
||||||
ldap_pvt_runqueue_resched( &slapd_rq, so->s_qtask, 1 );
|
ldap_pvt_runqueue_resched( &slapd_rq, rtask, 1 );
|
||||||
} 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 );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue