MXS-2026 Use qc_init(...)/qc_end()

Use qc_init(...)/qc_end() for initializing QC in test-programs.
This commit is contained in:
Johan Wikman
2018-08-27 16:15:16 +03:00
parent ce715e03aa
commit a29851a42c
7 changed files with 52 additions and 64 deletions

View File

@ -423,9 +423,7 @@ int main(int argc, char* argv[])
set_libdir(strdup("../../../query_classifier/qc_sqlite"));
// We have to setup something in order for the regexes to be compiled.
if (qc_setup(NULL, QC_SQL_MODE_DEFAULT, "qc_sqlite", NULL)
&& qc_process_init(QC_INIT_BOTH)
&& qc_thread_init(QC_INIT_BOTH))
if (qc_init(NULL, QC_SQL_MODE_DEFAULT, "qc_sqlite", NULL))
{
rc = EXIT_SUCCESS;
@ -451,8 +449,7 @@ int main(int argc, char* argv[])
cout << endl;
}
qc_thread_end(QC_INIT_BOTH);
qc_process_end(QC_INIT_BOTH);
qc_end();
}
else
{