Commit 3661d988 authored by Sergei Golubchik's avatar Sergei Golubchik

fix SHOW PROCESSLIST for --embedded

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

This fixes plugins.processlist for --embedded
parent 51254da5
......@@ -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;
}
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment