MXS-2008 Update gateway and tests to initialize maxbase

Update gateway and tests to initialize maxbase using

  maxbase::init();

instead of initializing individual components.
This commit is contained in:
Johan Wikman
2018-08-21 09:37:40 +03:00
parent e852dcacdd
commit 3576780f78
6 changed files with 15 additions and 21 deletions

View File

@ -15,8 +15,7 @@
*/
#include <maxscale/cdefs.h>
#include <maxbase/messagequeue.hh>
#include <maxbase/worker.hh>
#include <maxbase/maxbase.hh>
#include <maxscale/dcb.h>
#include <maxscale/housekeeper.h>
#include <maxscale/maxscale_test.h>
@ -48,8 +47,7 @@ void init_test_env(char *path)
qc_setup(NULL, QC_SQL_MODE_DEFAULT, NULL, NULL);
qc_process_init(QC_INIT_BOTH);
poll_init();
mxb::MessageQueue::init();
mxb::Worker::init();
maxbase::init();
maxscale::RoutingWorker::init();
hkinit();
}