diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index 03b4d7b4e..5dad4c3fc 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -3145,7 +3145,7 @@ __end_while_pool: } } if (GloProxyStats->MySQL_Query_Cache_timetoget(curtime)) { - if (GloMTH) { + if (GloQC) { SQLite3_result * resultset=GloQC->SQL3_getStats(); if (resultset) { GloProxyStats->MySQL_Query_Cache_sets(resultset);