Commit d2fdebe0 authored by Ondřej Surý's avatar Ondřej Surý

Merge branch 'u/fanf2/rndc-validation-status-noflush' into 'master'

Do not flush the cache for `rndc validation status`

See merge request !2462
parents de368cdf 9de062ae
Pipeline #24552 passed with stages
in 1 minute and 56 seconds
5312. [bug] Do not flush the cache for `rndc validation status`.
Thanks to Tony Finch. [GL !2462]
5311. [cleanup] Include all views in output of `rndc validation status`. 5311. [cleanup] Include all views in output of `rndc validation status`.
Thanks to Tony Finch. [GL !2461] Thanks to Tony Finch. [GL !2461]
......
...@@ -11081,9 +11081,9 @@ named_server_validation(named_server_t *server, isc_lex_t *lex, ...@@ -11081,9 +11081,9 @@ named_server_validation(named_server_t *server, isc_lex_t *lex,
if ((ptr != NULL && strcasecmp(ptr, view->name) != 0) if ((ptr != NULL && strcasecmp(ptr, view->name) != 0)
|| strcasecmp("_bind", view->name) == 0) || strcasecmp("_bind", view->name) == 0)
continue; continue;
CHECK(dns_view_flushcache(view, false));
if (set) { if (set) {
CHECK(dns_view_flushcache(view, false));
view->enablevalidation = enable; view->enablevalidation = enable;
changed = true; changed = true;
} else { } else {
......
...@@ -1078,6 +1078,8 @@ ...@@ -1078,6 +1078,8 @@
<para> <para>
Enable, disable, or check the current status of Enable, disable, or check the current status of
DNSSEC validation. By default, validation is enabled. DNSSEC validation. By default, validation is enabled.
The cache is flushed when validation is turned on or off
to avoid using data that might differ between states.
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment