Merge branch '2542-inline-loadtime-not-recorded' into 'main'
Record load time of touched inline zones Closes #2542 See merge request isc-projects/bind9!5289
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
5687. [bug] Update the load time of touched inline zones.
|
||||
[GL #2542]
|
||||
|
||||
5686. [func] The number of internal data structures allocated for
|
||||
each zone was reduced. [GL #2829]
|
||||
|
||||
|
||||
@@ -1386,8 +1386,8 @@ $RNDCCMD 10.53.0.3 zonestatus delayedkeys > rndc.out.ns3.post.test$n 2>&1 || ret
|
||||
grep "next resign node:" rndc.out.ns3.post.test$n > /dev/null || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
n=`expr $n + 1`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "check that zonestatus reports 'type: primary' for an inline primary zone ($n)"
|
||||
ret=0
|
||||
$RNDCCMD 10.53.0.3 zonestatus master > rndc.out.ns3.test$n
|
||||
@@ -1405,6 +1405,7 @@ status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "checking reload of touched inline zones ($n)"
|
||||
ret=0
|
||||
echo_ic "pre-reload 'next key event'"
|
||||
nextpart ns8/named.run > nextpart.pre$n.out
|
||||
count=`grep "zone example[0-9][0-9].com/IN (signed): next key event:" nextpart.pre$n.out | wc -l`
|
||||
@@ -1422,5 +1423,16 @@ echo_ic "found: $count/16"
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
n=`expr $n + 1`
|
||||
echo_i "checking second reload of touched inline zones ($n)"
|
||||
ret=0
|
||||
nextpart ns8/named.run > nextpart.pre$n.out
|
||||
$RNDCCMD 10.53.0.8 reload 2>&1 | sed 's/^/ns3 /' | cat_i
|
||||
sleep 5
|
||||
nextpart ns8/named.run > nextpart.post$n.out
|
||||
grep "ixfr-from-differences: unchanged" nextpart.post$n.out && ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=`expr $status + $ret`
|
||||
|
||||
echo_i "exit status: $status"
|
||||
[ $status -eq 0 ] || exit 1
|
||||
|
||||
@@ -5078,6 +5078,7 @@ zone_postload(dns_zone_t *zone, dns_db_t *db, isc_time_t loadtime,
|
||||
ISC_LOG_INFO,
|
||||
"ixfr-from-differences: "
|
||||
"unchanged");
|
||||
zone->loadtime = loadtime;
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user