2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

cache stats were detached when flushing cache

This commit is contained in:
Evan Hunt
2012-05-14 12:20:34 -07:00
parent d878b8d87c
commit d81b6b94c4
2 changed files with 2 additions and 1 deletions

View File

@@ -1167,6 +1167,7 @@ dns_cache_flush(dns_cache_t *cache) {
}
dns_db_detach(&cache->db);
cache->db = db;
dns_db_setcachestats(cache->db, cache->stats);
UNLOCK(&cache->cleaner.lock);
UNLOCK(&cache->lock);