diff options
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index f08f55eab..1651f16ff 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -33,11 +33,13 @@ #include "cfg_xml.h" #include "lua/lua_common.h" #include "kvstorage_config.h" +#include "map.h" #define DEFAULT_SCORE 10.0 #define DEFAULT_RLIMIT_NOFILE 2048 #define DEFAULT_RLIMIT_MAXCORE 0 +#define DEFAULT_MAP_TIMEOUT 10 gboolean @@ -221,6 +223,8 @@ init_defaults (struct config_file *cfg) cfg->cfg_params = g_hash_table_new (g_str_hash, g_str_equal); cfg->metrics_symbols = g_hash_table_new (g_str_hash, g_str_equal); + cfg->map_timeout = DEFAULT_MAP_TIMEOUT; + cfg->log_level = G_LOG_LEVEL_WARNING; cfg->log_extended = TRUE; @@ -231,6 +235,7 @@ init_defaults (struct config_file *cfg) void free_config (struct config_file *cfg) { + remove_all_maps (cfg); g_hash_table_remove_all (cfg->modules_opts); g_hash_table_unref (cfg->modules_opts); g_hash_table_remove_all (cfg->variables); |