Commit Diff
Diff:
95654312ed7c0db99e774ffc3535533d0b3c940c
59b030c0a0bdb55f426e05216c2e65e03d615892
Commit:
59b030c0a0bdb55f426e05216c2e65e03d615892
Tree:
417d721788149ad2ed09ac5b3e807a58f1b44305
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Sun Nov 3 07:01:26 2019 UTC
Message:
reschedule the refresh timer if: 1. the serial is not in error 2. the serial has not updated This was forgotten in yesterdays big commit.
blob - b7425fbd5b6412aeb2c37d0e4e13ae23da381518
blob + 1f8aafe6dfce55cf325ca3ea2615df4f817482e1
--- raxfr.c
+++ raxfr.c
@@ -26,7 +26,7 @@
*
*/
/*
- * $Id: raxfr.c,v 1.18 2019/11/02 18:32:24 pjp Exp $
+ * $Id: raxfr.c,v 1.19 2019/11/03 07:01:26 pjp Exp $
*/
#include <sys/types.h>
@@ -1444,6 +1444,8 @@ replicantloop(ddDB *db, struct imsgbuf *ibuf, struct i
* other tasks can still complete.
*/
endspurt = 1;
+ } else {
+ schedule_refresh(lrz->zonename, now + lrz->soa.refresh);
}
}
} else if (sp0->action == SCHEDULE_ACTION_RETRY) {
@@ -1528,7 +1530,9 @@ replicantloop(ddDB *db, struct imsgbuf *ibuf, struct i
*/
endspurt = 1;
- }
+ } else {
+ schedule_refresh(lrz->zonename, now + lrz->soa.refresh);
+ }
}
} else if (sp0->action == SCHEDULE_ACTION_REBOOT) {
@@ -1542,7 +1546,7 @@ replicantloop(ddDB *db, struct imsgbuf *ibuf, struct i
exit(0);
}
- } /* when below now */
+ }
out:
continue;
} /* LIST_FOREACH schedules */
repomaster@centroid.eu