diff options
author | Sam James <sam@gentoo.org> | 2024-02-18 10:29:50 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-02-18 10:48:23 +0000 |
commit | d1a4e2715cabf9ac1230d296eab23d44132bf078 (patch) | |
tree | c7dd8dafa17ee03e267c72a868ed74cd1ae6dffe /net-dns/nsd/files | |
parent | net-dns/bind-tools: add verify-sig support (diff) | |
download | gentoo-d1a4e2715cabf9ac1230d296eab23d44132bf078.tar.gz gentoo-d1a4e2715cabf9ac1230d296eab23d44132bf078.tar.bz2 gentoo-d1a4e2715cabf9ac1230d296eab23d44132bf078.zip |
net-dns/nsd: backport stats fix for 4.8.0
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-dns/nsd/files')
-rw-r--r-- | net-dns/nsd/files/nsd-4.8.0-implausible-stats.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net-dns/nsd/files/nsd-4.8.0-implausible-stats.patch b/net-dns/nsd/files/nsd-4.8.0-implausible-stats.patch new file mode 100644 index 000000000000..318f2a5e2f55 --- /dev/null +++ b/net-dns/nsd/files/nsd-4.8.0-implausible-stats.patch @@ -0,0 +1,22 @@ +https://github.com/NLnetLabs/nsd/issues/313 +https://github.com/NLnetLabs/nsd/commit/ccc1bbc28abd3a723c25cb8dcc735731926979d0 + +From ccc1bbc28abd3a723c25cb8dcc735731926979d0 Mon Sep 17 00:00:00 2001 +From: "W.C.A. Wijngaards" <wouter@nlnetlabs.nl> +Date: Tue, 6 Feb 2024 11:44:24 +0100 +Subject: [PATCH] - Fix #313: nsd 4.8 stats with implausible spikes. + +--- a/remote.c ++++ b/remote.c +@@ -2932,7 +2932,9 @@ process_stats(RES* ssl, xfrd_state_type* xfrd, int peek) + process_stats_manage_clear(xfrd, stats, peek); + process_stats_add_total(xfrd, &total, stats); + print_stats(ssl, xfrd, &stattime, !peek, &total, zonestats); +- xfrd->nsd->rc->stats_time = stattime; ++ if(!peek) { ++ xfrd->nsd->rc->stats_time = stattime; ++ } + + free(stats); + #ifdef USE_ZONE_STATS + |