#333 Improve refresh query matching in order to show realtime results for SHOW PROCESSLIST

pull/334/head
Andrei Ismail 11 years ago
parent 0f0758b2eb
commit d322635dc6

@ -874,7 +874,11 @@ void ProxySQL_Admin::GenericRefreshStatistics(const char *query_no_space, unsign
bool stats_mysql_query_digest_reset=false;
bool dump_global_variables=false;
if (strstr(query_no_space,"stats_mysql_processlist"))
if (strcasestr(query_no_space,"processlist"))
// This will match the following usecases:
// SHOW PROCESSLIST
// SHOW FULL PROCESSLIST
// SELECT * FROM stats_mysql_processlist
{ stats_mysql_processlist=true; refresh=true; }
if (strstr(query_no_space,"stats_mysql_query_digest"))
{ stats_mysql_query_digest=true; refresh=true; }

Loading…
Cancel
Save