From 306beb05cdd0373d92c615089a1897427e2ab875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 4 Jun 2018 11:30:39 +0300 Subject: [PATCH] MXS-1899: Allow generated [maxscale] sections The generated configuration file contains a [maxscale] section which should not be treated as an error. --- server/core/config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/config.cc b/server/core/config.cc index 48133db96..ea7ad9aaa 100644 --- a/server/core/config.cc +++ b/server/core/config.cc @@ -526,7 +526,7 @@ static int ini_handler(void *userdata, const char *section, const char *name, co if (strcmp(section, CN_GATEWAY) == 0 || strcasecmp(section, CN_MAXSCALE) == 0) { - if (is_root_config_file) + if (is_root_config_file || is_persisted_config) { return handle_global_item(name, value); }