[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4087 - in trunk/OpenDNSSEC/signer/src: daemon signer

Matthijs Mekking matthijs at nlnetlabs.nl
Tue Oct 12 15:12:43 CEST 2010


Author: matthijs
Date: 2010-10-12 15:12:43 +0200 (Tue, 12 Oct 2010)
New Revision: 4087

Modified:
   trunk/OpenDNSSEC/signer/src/daemon/worker.c
   trunk/OpenDNSSEC/signer/src/signer/zone.c
   trunk/OpenDNSSEC/signer/src/signer/zone.h
Log:
remove unused worker pointer



Modified: trunk/OpenDNSSEC/signer/src/daemon/worker.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/daemon/worker.c	2010-10-12 13:12:17 UTC (rev 4086)
+++ trunk/OpenDNSSEC/signer/src/daemon/worker.c	2010-10-12 13:12:43 UTC (rev 4087)
@@ -100,10 +100,8 @@
             lock_basic_lock(&zone->zone_lock);
             se_log_debug("worker[%i]: locked zone %s", worker->thread_num,
                 task->who);
-            zone->worker = worker;
             worker_perform_task(worker, task);
             zone->processed = 1;
-            zone->worker = NULL;
             se_log_debug("worker[%i]: unlock zone %s", worker->thread_num,
                 task->who);
             lock_basic_unlock(&zone->zone_lock);

Modified: trunk/OpenDNSSEC/signer/src/signer/zone.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/zone.c	2010-10-12 13:12:17 UTC (rev 4086)
+++ trunk/OpenDNSSEC/signer/src/signer/zone.c	2010-10-12 13:12:43 UTC (rev 4087)
@@ -73,7 +73,6 @@
     zone->outbound_adapter = NULL;
     zone->task = NULL;
     zone->backoff = 0;
-    zone->worker = NULL;
     zone->just_added = 0;
     zone->just_updated = 0;
     zone->tobe_removed = 0;

Modified: trunk/OpenDNSSEC/signer/src/signer/zone.h
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/zone.h	2010-10-12 13:12:17 UTC (rev 4086)
+++ trunk/OpenDNSSEC/signer/src/signer/zone.h	2010-10-12 13:12:43 UTC (rev 4087)
@@ -46,7 +46,6 @@
 
 struct task_struct;
 struct tasklist_struct;
-struct worker_struct;
 
 /**
  * Zone.
@@ -78,7 +77,6 @@
 
     /* worker variables */
     struct task_struct* task; /* current scheduled task */
-    struct worker_struct* worker; /* current active worker */
     time_t backoff; /* backoff value if there is something failing */
     int in_progress; /* in progress (check with active worker?) */
     stats_type* stats; /* statistics */




More information about the Opendnssec-commits mailing list