Fix per thread memory use log message

The query classification cache size was not correctly calculated for the
message.
This commit is contained in:
Markus Mäkelä
2018-11-02 17:56:39 +02:00
parent 4e796189b2
commit ab70231c12

View File

@ -397,9 +397,9 @@ bool qc_setup(const QC_CACHE_PROPERTIES* cache_properties,
if (cache_max_size) if (cache_max_size)
{ {
int64_t size_per_thr = cache_max_size / config_get_global_options()->n_threads;
MXS_NOTICE("Query classification results are cached and reused. " MXS_NOTICE("Query classification results are cached and reused. "
"Memory used per thread: %s", "Memory used per thread: %s", mxb::to_binary_size(size_per_thr).c_str());
mxb::to_binary_size(cache_max_size).c_str());
} }
else else
{ {