Fix qc cache memory usage message

A zero value would get printed as -nanYiB.
This commit is contained in:
Markus Mäkelä
2019-01-29 03:04:29 +02:00
parent da07672778
commit df9335382d

View File

@ -1229,6 +1229,10 @@ bool config_load_global(const char* filename)
"cache. To enable it, add '%s' to the configuration file.", "cache. To enable it, add '%s' to the configuration file.",
CN_QUERY_CLASSIFIER_CACHE_SIZE); CN_QUERY_CLASSIFIER_CACHE_SIZE);
} }
else if (gateway.qc_cache_properties.max_size == 0)
{
MXS_NOTICE("Query classifier cache is disabled");
}
else else
{ {
MXS_NOTICE("Using up to %s of memory for query classifier cache", MXS_NOTICE("Using up to %s of memory for query classifier cache",