Fix examplefilter

It used the old configuration parameter code.
This commit is contained in:
Markus Mäkelä
2019-03-21 18:39:40 +02:00
parent bf2d6673bc
commit 114c172387

View File

@ -62,7 +62,7 @@ extern "C" MXS_MODULE* MXS_CREATE_MODULE()
ExampleFilter::ExampleFilter(const MXS_CONFIG_PARAMETER* pParams) ExampleFilter::ExampleFilter(const MXS_CONFIG_PARAMETER* pParams)
{ {
m_collect_global_counts = config_get_bool(pParams, CN_COUNT_GLOBALS); m_collect_global_counts = pParams->get_bool(CN_COUNT_GLOBALS);
} }
ExampleFilter::~ExampleFilter() ExampleFilter::~ExampleFilter()
@ -126,4 +126,4 @@ void ExampleFilter::reply_seen()
{ {
m_total_replies.fetch_add(1, std::memory_order_relaxed); m_total_replies.fetch_add(1, std::memory_order_relaxed);
} }
} }