|
|
|
|
@ -517,6 +517,21 @@ bool admin_handler_command_proxysql(char *query_no_space, unsigned int query_no_
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ifndef NOJEM
|
|
|
|
|
if (query_no_space_length==strlen("PROXYSQL MEMPROFILE START") && !strncasecmp("PROXYSQL MEMPROFILE START",query_no_space, query_no_space_length)) {
|
|
|
|
|
bool en=true;
|
|
|
|
|
mallctl("prof.active", NULL, NULL, &en, sizeof(bool));
|
|
|
|
|
SPA->send_MySQL_OK(&sess->client_myds->myprot, NULL);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (query_no_space_length==strlen("PROXYSQL MEMPROFILE STOP") && !strncasecmp("PROXYSQL MEMPROFILE STOP",query_no_space, query_no_space_length)) {
|
|
|
|
|
bool en=false;
|
|
|
|
|
mallctl("prof.active", NULL, NULL, &en, sizeof(bool));
|
|
|
|
|
SPA->send_MySQL_OK(&sess->client_myds->myprot, NULL);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
if (query_no_space_length==strlen("PROXYSQL KILL") && !strncasecmp("PROXYSQL KILL",query_no_space, query_no_space_length)) {
|
|
|
|
|
proxy_info("Received PROXYSQL KILL command\n");
|
|
|
|
|
exit(EXIT_SUCCESS);
|
|
|
|
|
|