recovered resolver stat initialization that was accidentally lost in 9.5.0-P1
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: server.c,v 1.495.10.13 2008/05/29 23:46:34 tbox Exp $ */
|
||||
/* $Id: server.c,v 1.495.10.14 2008/06/23 23:30:59 jinmei Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -1337,6 +1337,15 @@ configure_view(dns_view_t *view, const cfg_obj_t *config,
|
||||
resopts, ns_g_dispatchmgr,
|
||||
dispatch4, dispatch6));
|
||||
|
||||
if (resstats == NULL) {
|
||||
CHECK(dns_generalstats_create(mctx, &resstats,
|
||||
dns_resstatscounter_max));
|
||||
}
|
||||
dns_view_setresstats(view, resstats);
|
||||
if (resquerystats == NULL)
|
||||
CHECK(dns_rdatatypestats_create(mctx, &resquerystats));
|
||||
dns_view_setresquerystats(view, resquerystats);
|
||||
|
||||
/*
|
||||
* Set the ADB cache size to 1/8th of the max-cache-size.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user