]> git.sur5r.net Git - openldap/commitdiff
ITS#5719 Reset interval after rescheduling a paused task.
authorRein Tollevik <rein@openldap.org>
Mon, 29 Sep 2008 20:01:40 +0000 (20:01 +0000)
committerRein Tollevik <rein@openldap.org>
Mon, 29 Sep 2008 20:01:40 +0000 (20:01 +0000)
servers/slapd/syncrepl.c

index 30f4c63dc502236652770ef193c4fe31e4c2b2c8..4ceabf64a34ef86ea837e184f674cee4cbd7f22d 100644 (file)
@@ -1354,6 +1354,7 @@ reload:
        if ( rc == SYNC_PAUSED ) {
                rtask->interval.tv_sec = 0;
                ldap_pvt_runqueue_resched( &slapd_rq, rtask, 0 );
+               rtask->interval.tv_sec = si->si_interval;
                rc = 0;
        } else if ( rc == LDAP_SUCCESS ) {
                if ( si->si_type == LDAP_SYNC_REFRESH_ONLY ) {