mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
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:
parent
51254da52c
commit
3661d98822
1 changed files with 9 additions and 9 deletions
|
@ -2267,16 +2267,16 @@ static const char *thread_state_info(THD *tmp)
|
||||||
else
|
else
|
||||||
return "Reading from net";
|
return "Reading from net";
|
||||||
}
|
}
|
||||||
else
|
#else
|
||||||
|
if (tmp->get_command() == COM_SLEEP)
|
||||||
|
return "";
|
||||||
#endif
|
#endif
|
||||||
{
|
if (tmp->proc_info)
|
||||||
if (tmp->proc_info)
|
return tmp->proc_info;
|
||||||
return tmp->proc_info;
|
else if (tmp->mysys_var && tmp->mysys_var->current_cond)
|
||||||
else if (tmp->mysys_var && tmp->mysys_var->current_cond)
|
return "Waiting on cond";
|
||||||
return "Waiting on cond";
|
else
|
||||||
else
|
return NULL;
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void mysqld_list_processes(THD *thd,const char *user, bool verbose)
|
void mysqld_list_processes(THD *thd,const char *user, bool verbose)
|
||||||
|
|
Loading…
Reference in a new issue