[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [ascension] 33/57: added needed return statement; add glue
From: |
gnunet |
Subject: |
[GNUnet-SVN] [ascension] 33/57: added needed return statement; add glue records first, then NS |
Date: |
Sat, 13 Apr 2019 13:32:30 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 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
- [GNUnet-SVN] [ascension] 26/57: added definitive support for IXFR, (continued)
- [GNUnet-SVN] [ascension] 26/57: added definitive support for IXFR, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 37/57: updated README, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 22/57: finished refactoring, fixed a few bugs, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 30/57: updated gnsmigrator and removed c rebuilds, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 44/57: updated README, cleanup, PEP8, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 32/57: testing and added logging of executed commands to debug, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 28/57: refactored code, added debug mode, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 35/57: unify all records under label, added SUPPORTED_RECORDS global, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 40/57: improvements, better case separation, more logging, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 50/57: flags adjustment and soa record is now public by default, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 33/57: added needed return statement; add glue records first, then NS,
gnunet <=
- [GNUnet-SVN] [ascension] 25/57: fixed bugs, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 38/57: renamed project to ascension, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 31/57: added testing for gnunet -K option and more, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 52/57: changed argument -ns to -n, removed gnunet.py, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 46/57: added license headers, GNU coding style guidelines, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 53/57: Add ascension.1, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 34/57: updated gnsmigrator for multiline, added multiline tests, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 41/57: added logic for subzones with zone cut, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 45/57: renamed files, gnunet, 2019/04/13
- [GNUnet-SVN] [ascension] 48/57: fixed creation zone for non-bailiwick records. bugfixes, gnunet, 2019/04/13