From: Howard Chu Date: Thu, 21 Sep 2006 10:12:42 +0000 (+0000) Subject: Tweak prev commit, avoid referencing syncop when resetting qtask X-Git-Tag: OPENLDAP_REL_ENG_2_3_MP~111 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=393e6e5ec0c1200fb39962428ce31b7131b08e22;p=openldap Tweak prev commit, avoid referencing syncop when resetting qtask --- diff --git a/servers/slapd/overlays/syncprov.c b/servers/slapd/overlays/syncprov.c index 410183bb25..c17597392f 100644 --- a/servers/slapd/overlays/syncprov.c +++ b/servers/slapd/overlays/syncprov.c @@ -906,9 +906,9 @@ syncprov_qtask( void *ctx, void *arg ) /* wait until we get explicitly scheduled again */ 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 ) { - ldap_pvt_runqueue_resched( &slapd_rq, so->s_qtask, 1 ); + ldap_pvt_runqueue_resched( &slapd_rq, rtask, 1 ); } else { /* bail out on any error */ ldap_pvt_runqueue_remove( &slapd_rq, rtask );