Commit d03ca0ef authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(main): Moved the call to init_stats earlier, so that we can count the

	existing texts while reading the database.
parent 12d017e4
/*
* $Id: ramkomd.c,v 0.118 2003/07/24 08:37:44 ceder Exp $
* $Id: ramkomd.c,v 0.119 2003/07/27 14:59:55 ceder Exp $
* Copyright (C) 1991-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -610,6 +610,7 @@ main (int argc,
if (i < argc)
restart_kom("usage: %s [-d ...] [config-file]\n", argv[0]);
init_stats();
initialize(config_file); /* Read config, listen, and start db */
chdir(param.core_dir);
......@@ -618,7 +619,6 @@ main (int argc,
sfree(default_config_file);
save_pid();
init_stats();
check_all_stats("init");
toploop();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment