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

Don't reset counters on every reload

This commit is contained in:
Michael Sawyer
2000-11-28 19:58:14 +00:00
parent f6ec00228a
commit f9fa6b9a3b

View File

@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: server.c,v 1.258 2000/11/28 01:59:24 mws Exp $ */
/* $Id: server.c,v 1.259 2000/11/28 19:58:14 mws Exp $ */
#include <config.h>
@@ -1759,10 +1759,6 @@ load_configuration(const char *filename, ns_server_t *server,
else
ns_os_writepidfile(ns_g_defaultpidfile);
server->statsfile = NULL;
server->statsfp = NULL;
ns_server_zeroglobal(server);
if (dns_c_ctx_getstatsfilename(cctx, &statsfilename) != ISC_R_NOTFOUND)
ns_server_setstatsfile(statsfilename, server);
@@ -2009,6 +2005,10 @@ ns_server_create(isc_mem_t *mctx, ns_server_t **serverp) {
CHECKFATAL(dns_loadmgr_create(ns_g_mctx, &server->loadmgr),
"dns_loadmgr_create");
server->statsfile = NULL;
server->statsfp = NULL;
ns_server_zeroglobal(server);
server->flushonshutdown = ISC_FALSE;
server->magic = NS_SERVER_MAGIC;
*serverp = server;