[Opendnssec-commits] matthijs r6975 - branches/OpenDNSSEC-1.3/signer/src/daemon

commits at svn.opendnssec.org commits at svn.opendnssec.org
Wed Jan 23 16:16:00 CET 2013


Author: matthijs
Date: Wed Jan 23 16:16:00 2013
New Revision: 6975
URL: http://fisheye.opendnssec.org/changelog/opendnssec?cs=6975

Log:
do max backoff check in the correct directory

Modified:
   branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c

Modified: branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c
==============================================================================
--- branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c	Wed Jan 23 16:15:31 2013	(r6974)
+++ branches/OpenDNSSEC-1.3/signer/src/daemon/worker.c	Wed Jan 23 16:16:00 2013	(r6975)
@@ -479,12 +479,12 @@
 
     if (task->backoff) {
         task->backoff *= 2;
-        if (task->backoff > ODS_SE_MAX_BACKOFF) {
-            task->backoff = ODS_SE_MAX_BACKOFF;
-        }
     } else {
         task->backoff = 60;
     }
+    if (task->backoff > ODS_SE_MAX_BACKOFF) {
+        task->backoff = ODS_SE_MAX_BACKOFF;
+    }
     ods_log_info("[%s[%i]] backoff task %s for zone %s with %u seconds",
         worker2str(worker->type), worker->thread_num,
         task_what2str(task->what), task_who2str(task->who), task->backoff);
@@ -572,9 +572,9 @@
                 timeout = (worker->task->when - now);
             } else {
                 timeout *= 2;
-                if (timeout > ODS_SE_MAX_BACKOFF) {
-                    timeout = ODS_SE_MAX_BACKOFF;
-                }
+            }
+            if (timeout > ODS_SE_MAX_BACKOFF) {
+                timeout = ODS_SE_MAX_BACKOFF;
             }
             worker->task = NULL;
             worker_sleep(worker, timeout);



More information about the Opendnssec-commits mailing list