]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
recovered resolver stat initialization that was accidentally lost in 9.5.0-P1
authorTatuya JINMEI 神明達哉 <jinmei@isc.org>
Mon, 23 Jun 2008 23:30:59 +0000 (23:30 +0000)
committerTatuya JINMEI 神明達哉 <jinmei@isc.org>
Mon, 23 Jun 2008 23:30:59 +0000 (23:30 +0000)
bin/named/server.c

index 1a464015755f55c432999c5d25955854a158257f..e45759d64beb351fd2757d89f3b628b338b3b266 100644 (file)
@@ -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.
         */