gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [ascension] 33/45: added needed return statement; add glue


From: gnunet
Subject: [GNUnet-SVN] [ascension] 33/45: added needed return statement; add glue records first, then NS
Date: Fri, 25 Jan 2019 10:02:33 +0100

This is an automated email from the git hooks/post-receive script.

rexxnor pushed a commit to branch master
in repository ascension.

commit edb13e7f7e4dd4d863ba37478807580f3c84b8d3
Author: rexxnor <address@hidden>
AuthorDate: Thu Nov 29 22:26:25 2018 +0100

    added needed return statement; add glue records first, then NS
---
 gnsmigrator/gnsmigrator.py | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/gnsmigrator/gnsmigrator.py b/gnsmigrator/gnsmigrator.py
index 853d97d..d8031b7 100644
--- a/gnsmigrator/gnsmigrator.py
+++ b/gnsmigrator/gnsmigrator.py
@@ -175,6 +175,7 @@ class GNSMigrator():
             cls.initial_zone_transfer()
             cls.zone = dns.zone.from_xfr(cls.zonegenerator)
             cls.soa = cls.get_zone_soa(cls.zone)
+            return
         elif zoneserial < currentserial:
             cls.initial_zone_transfer(serial=zoneserial)
             cls.zone = dns.zone.from_xfr(cls.zonegenerator)
@@ -222,9 +223,14 @@ class GNSMigrator():
         thread = threading.Thread(target=worker)
         thread.start()
 
-        # Give worker stuff to do
-        for record in cls.zone.iterate_rdatas():
-            taskqueue.put(record)
+        # Add glue records to zone
+        for gluerecord in cls.zone.iterate_rdatas(rdtype=dns.rdatatype.A):
+            taskqueue.put(gluerecord)
+        for gluerecord in cls.zone.iterate_rdatas(rdtype=dns.rdatatype.AAAA):
+            taskqueue.put(gluerecord)
+        # Add NS records to zone
+        for nsrecord in cls.zone.iterate_rdatas(rdtype=dns.rdatatype.NS):
+            taskqueue.put(nsrecord)
 
         # Block until all tasks are done
         taskqueue.join()

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]