fix SHOW PROCESSLIST for --embedded

make it return the same Info values as for the standalone server.

This fixes plugins.processlist for --embedded
This commit is contained in:
Sergei Golubchik 2018-06-13 20:31:40 +02:00
parent 51254da52c
commit 3661d98822

View file

@ -2267,16 +2267,16 @@ static const char *thread_state_info(THD *tmp)
else
return "Reading from net";
}
else
#else
if (tmp->get_command() == COM_SLEEP)
return "";
#endif
{
if (tmp->proc_info)
return tmp->proc_info;
else if (tmp->mysys_var && tmp->mysys_var->current_cond)
return "Waiting on cond";
else
return NULL;
}
}
void mysqld_list_processes(THD *thd,const char *user, bool verbose)