MXS-2026 Use qc_init(...)/qc_end()
Use qc_init(...)/qc_end() for initializing QC in test-programs.
This commit is contained in:
@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user