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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user