Allow the query classifier to be specified in maxscale.cnf

This commit is contained in:
Johan Wikman
2016-02-01 20:44:36 +02:00
parent e668abec5b
commit 2bbe1b068a
4 changed files with 26 additions and 2 deletions

View File

@ -1782,7 +1782,10 @@ int main(int argc, char **argv)
goto return_main;
}
if (!qc_init(NULL))
GATEWAY_CONF* cnf = config_get_global_options();
ss_dassert(cnf);
if (!qc_init(cnf->qc_name))
{
char* logerr = "Failed to initialise query classifier library.";
print_log_n_stderr(true, true, logerr, logerr, eno);