MXS-2538: Fix hang on unknown KILL

Unknown KILL commands are now forwarded as-is to the routers.
This commit is contained in:
Markus Mäkelä 2019-05-31 12:21:44 +03:00
parent 220fea3546
commit e9c652555d
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -1937,11 +1937,12 @@ spec_com_res_t handle_query_kill(DCB* dcb,
querybuf[copied_len] = '\0';
kill_type_t kt = KT_CONNECTION;
uint64_t thread_id = 0;
rval = RES_END;
std::string user;
if (parse_kill_query(querybuf, &thread_id, &kt, &user))
{
rval = RES_END;
if (thread_id > 0)
{
mxs_mysql_execute_kill(dcb->session, thread_id, kt);