Skip to content

Commit

Permalink
fix SHOW PROCESSLIST for --embedded
Browse files Browse the repository at this point in the history
make it return the same Info values as for the standalone server.

This fixes plugins.processlist for --embedded
  • Loading branch information
vuvova committed Jun 13, 2018
1 parent 51254da commit 3661d98
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions sql/sql_show.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3661d98

Please sign in to comment.