mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-07 16:00:34 -05:00
Set ret=1 if _wait_for_stats does not succeed
Errors getting transfer statistics from named.run where not detected
as ret was not set to one if there hadn't been a success after looping
for a while.
(cherry picked from commit 287a1ac09b)
This commit is contained in:
parent
6c930b8db5
commit
4e8b3f9893
1 changed files with 2 additions and 2 deletions
|
|
@ -407,13 +407,13 @@ _wait_for_stats () {
|
|||
n=$((n+1))
|
||||
echo_i "checking whether named calculates incoming IXFR statistics correctly ($n)"
|
||||
ret=0
|
||||
retry_quiet 10 _wait_for_stats 10.53.0.3 "Transfer completed" stats.incoming
|
||||
retry_quiet 10 _wait_for_stats 10.53.0.3 "Transfer completed" stats.incoming || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking whether named calculates outgoing IXFR statistics correctly ($n)"
|
||||
retry_quiet 10 _wait_for_stats 10.53.0.4 "IXFR ended" stats.outgoing
|
||||
retry_quiet 10 _wait_for_stats 10.53.0.4 "IXFR ended" stats.outgoing || ret=1
|
||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue