mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 23:00:01 -04:00
After cache flush, restore serve-stale settings
When flushing the cache, we create a new cache database. The serve-stale settings need to be restored after doing this. We already did this for max-stale-ttl, but forgot to do this for stale-refresh-time.
This commit is contained in:
parent
0f593fd70a
commit
3ae721db6c
1 changed files with 1 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ cache_create_db(dns_cache_t *cache, dns_db_t **db) {
|
|||
dns_dbtype_cache, cache->rdclass, 1, argv, db);
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
dns_db_setservestalettl(*db, cache->serve_stale_ttl);
|
||||
dns_db_setservestalerefresh(*db, cache->serve_stale_refresh);
|
||||
}
|
||||
return (result);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue