]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix transfer statistics extraction
authorMichał Kępień <michal@isc.org>
Tue, 18 Jun 2019 06:51:50 +0000 (08:51 +0200)
committerMichał Kępień <michal@isc.org>
Tue, 18 Jun 2019 06:53:35 +0000 (08:53 +0200)
commitaa54cc407fd730e85c4feca71dd0d1784003f9f3
tree6a83fd5cb604d747f060e3b490a25f66916816e7
parent4f23a48449611a0bfb62d0b469362d97c042b7e6
Fix transfer statistics extraction

Make the get_named_xfer_stats() helper shell function more precise in
order to prevent it from matching the wrong lines as that may trigger
false positives for the "ixfr" and "xfer" system tests.  As an example,
the regular expression responsible for extracting the number of bytes
transmitted throughout an entire zone transfer could also match a line
containing the following string:

    transfer of '<zone-name>/IN': sending TCP message of <integer> bytes

However, such a line is not one summarizing a zone transfer.

Also simplify both get_dig_xfer_stats() and get_named_xfer_stats() by
eliminating the need for "echo" statements in them.

(cherry picked from commit fab67c074a8df8c0996c858629e9b23dff35417c)
bin/tests/system/conf.sh.common