mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Merge with 5.2
This commit is contained in:
@@ -1943,7 +1943,9 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
|
||||
pthread_mutex_lock(&tmp->LOCK_thd_data);
|
||||
if ((mysys_var= tmp->mysys_var))
|
||||
pthread_mutex_lock(&mysys_var->mutex);
|
||||
thd_info->proc_info= (char*) (tmp->killed == THD::KILL_CONNECTION? "Killed" : 0);
|
||||
thd_info->proc_info= (char*) (tmp->killed != THD::NOT_KILLED &&
|
||||
tmp->killed != THD::KILL_BAD_DATA ?
|
||||
"Killed" : 0);
|
||||
#ifndef EMBEDDED_LIBRARY
|
||||
thd_info->state_info= (char*) (tmp->net.reading_or_writing ?
|
||||
(tmp->net.reading_or_writing == 2 ?
|
||||
@@ -2082,7 +2084,9 @@ int fill_schema_processlist(THD* thd, TABLE_LIST* tables, COND* cond)
|
||||
if ((mysys_var= tmp->mysys_var))
|
||||
pthread_mutex_lock(&mysys_var->mutex);
|
||||
/* COMMAND */
|
||||
if ((val= (char *) (tmp->killed == THD::KILL_CONNECTION? "Killed" : 0)))
|
||||
if ((val= (char *) ((tmp->killed != THD::NOT_KILLED &&
|
||||
tmp->killed != THD::KILL_BAD_DATA ?
|
||||
"Killed" : 0))))
|
||||
table->field[4]->store(val, strlen(val), cs);
|
||||
else
|
||||
table->field[4]->store(command_name[tmp->command].str,
|
||||
|
||||
Reference in New Issue
Block a user