From 7ef783487c42685a5d11098f35b5fe52c6e840e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Thu, 14 Oct 2021 19:18:36 +0200 Subject: [PATCH] Adding skeleton for PROXYSQL_SIMULATOR --- lib/ProxySQL_Admin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/ProxySQL_Admin.cpp b/lib/ProxySQL_Admin.cpp index d4ef4bf96..6d34319c7 100644 --- a/lib/ProxySQL_Admin.cpp +++ b/lib/ProxySQL_Admin.cpp @@ -3598,6 +3598,13 @@ void admin_session_handler(MySQL_Session *sess, void *_pa, PtrSize_t *pkt) { } } } +#ifdef DEBUG + if (!strncasecmp("PROXYSQL_SIMULATOR ", query_no_space, strlen("PROXYSQL_SIMULATOR "))) { + if (sess->session_type == PROXYSQL_SESSION_ADMIN) { // no stats + proxy_warning("Received PROXYSQL_SIMULATOR command: %s\n", query_no_space); + } + } +#endif // DEBUG if (!strncasecmp("PROXYSQLTEST ", query_no_space, strlen("PROXYSQLTEST "))) { if (sess->session_type == PROXYSQL_SESSION_ADMIN) { // no stats int test_n = 0;