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:
@ -183,6 +183,8 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
if (mxs_log_init(NULL, ".", MXS_LOG_TARGET_DEFAULT))
|
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.
|
// 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))
|
if (qc_setup("qc_sqlite", NULL) && qc_process_init(QC_INIT_BOTH))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -420,6 +420,8 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
if (mxs_log_init(NULL, ".", MXS_LOG_TARGET_DEFAULT))
|
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.
|
// 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))
|
if (qc_setup("qc_sqlite", NULL) && qc_process_init(QC_INIT_BOTH))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user