Load qc from build directory

The query classifier library will now be loaded from the build
directory and not from the installation directory.
This commit is contained in:
Johan Wikman 2017-12-27 16:09:54 +02:00
parent c6e0d1f33c
commit 33b1c552e0
2 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,8 @@ int main(int argc, char* argv[])
if (mxs_log_init(NULL, ".", MXS_LOG_TARGET_DEFAULT))
{
set_libdir(strdup("../../../query_classifier/qc_sqlite"));
// We have to setup something in order for the regexes to be compiled.
if (qc_setup("qc_sqlite", NULL) && qc_process_init(QC_INIT_BOTH))
{

View File

@ -420,6 +420,8 @@ int main(int argc, char* argv[])
if (mxs_log_init(NULL, ".", MXS_LOG_TARGET_DEFAULT))
{
set_libdir(strdup("../../../query_classifier/qc_sqlite"));
// We have to setup something in order for the regexes to be compiled.
if (qc_setup("qc_sqlite", NULL) && qc_process_init(QC_INIT_BOTH))
{