]> git.sur5r.net Git - openldap/commitdiff
Tweak prev commit, avoid referencing syncop when resetting qtask
authorHoward Chu <hyc@openldap.org>
Thu, 21 Sep 2006 10:12:42 +0000 (10:12 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 21 Sep 2006 10:12:42 +0000 (10:12 +0000)
servers/slapd/overlays/syncprov.c

index 410183bb252be7a555ec71c9907ea7563c630e0c..c17597392fac990d23774cfb42288e1c68234cee 100644 (file)
@@ -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 );