bind9/lib
Michał Kępień cf7557dce0 Fix reloading inline-signed zones
While "rndc reload" causes dns_zone_asyncload() to be called for the
signed version of an inline-signed zone, the subsequent zone_load() call
causes the raw version to be reloaded from storage.  This means that
DNS_ZONEFLG_LOADPENDING gets set for the signed version of the zone by
dns_zone_asyncload() before the reload is attempted, but zone_postload()
is only called for the raw version and thus DNS_ZONEFLG_LOADPENDING is
cleared for the raw version, but not for the signed version.  This in
turn prevents zone maintenance from happening for the signed version of
the zone.

Until commit 749b3cacfc, this problem
remained dormant because DNS_ZONEFLG_LOADPENDING was previously
immediately, unconditionally cleared after zone loading was started
(whereas it should only be cleared when zone loading is finished or an
error occurs).  This behavior caused other issues [1] and thus had to be
changed.

Fix reloading inline-signed zones by clearing DNS_ZONEFLG_LOADPENDING
for the signed version of the zone once the raw version reload
completes.  Take care not to clear it prematurely during initial zone
load.  Also make sure that DNS_ZONEFLG_LOADPENDING gets cleared when
zone_postload() encounters an error or returns early, to prevent other
scenarios from resulting in the same problem.  Add comments aiming to
help explain code flow.

[1] see RT #47076

(cherry picked from commit 5431583971)
2018-08-22 11:46:08 +02:00
..
bind9 Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
dns Fix reloading inline-signed zones 2018-08-22 11:46:08 +02:00
irs Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
isc We want to install compatibility shim isc/int.h and isc/boolean.h headers 2018-08-22 09:07:39 +02:00
isccc Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
isccfg Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
lwres Update lwres to use stdint types to finish transition to using stdint types 2018-08-22 09:04:02 +02:00
samples Replace custom isc_boolean_t with C standard bool type 2018-08-10 15:20:57 +02:00
win32/bindevt Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 14:25:15 +02:00
.gitignore added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Atffile 4492. [bug] irs_resconf_load failed to initialise sortlistnxt 2016-10-27 13:18:47 +11:00
Kyuafile regen v9_11 2017-12-29 02:23:11 +00:00
Makefile.in update file headers to remove copyright years 2018-03-14 16:40:20 -07:00