Skip to content

Commit

Permalink
Added all session status values to display in processlist #1496 - Add…
Browse files Browse the repository at this point in the history
…ed descriptions for the following status constants:

```
CONNECTING_CLIENT
PINGING_SERVER
WAITING_SERVER_DATA
CHANGING_CHARSET
CHANGING_AUTOCOMMIT
CHANGING_USER_CLIENT
SETTING_INIT_CONNECT
SETTING_SQL_LOG_BIN
SETTING_SQL_MODE
SETTING_TIME_ZONE
FAST_FORWARD
NONE
```
  • Loading branch information
pondix committed May 9, 2018
1 parent d04ca07 commit f4cd36c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions lib/MySQL_Thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4115,6 +4115,9 @@ SQLite3_result * MySQL_Threads_Handler::SQL3_Processlist() {
case CHANGING_USER_SERVER:
pta[11]=strdup("Change user");
break;
case CHANGING_USER_CLIENT:
pta[11]=strdup("Change user client");
break;
case CHANGING_SCHEMA:
pta[11]=strdup("InitDB");
break;
Expand All @@ -4124,6 +4127,39 @@ SQLite3_result * MySQL_Threads_Handler::SQL3_Processlist() {
case PROCESSING_STMT_PREPARE:
pta[11]=strdup("Prepare");
break;
case CONNECTING_CLIENT:
pta[11]=strdup("Connecting client");
break;
case PINGING_SERVER:
pta[11]=strdup("Pinging server");
break;
case WAITING_SERVER_DATA:
pta[11]=strdup("Waiting server data");
break;
case CHANGING_CHARSET:
pta[11]=strdup("Changing charset");
break;
case CHANGING_AUTOCOMMIT:
pta[11]=strdup("Changing autocommit");
break;
case SETTING_INIT_CONNECT:
pta[11]=strdup("Setting init connect");
break;
case SETTING_SQL_LOG_BIN:
pta[11]=strdup("Set log bin");
break;
case SETTING_SQL_MODE:
pta[11]=strdup("Set SQL mode");
break;
case SETTING_TIME_ZONE:
pta[11]=strdup("Set TZ");
break;
case FAST_FORWARD:
pta[11]=strdup("Fast forward");
break;
case NONE:
pta[11]=strdup("None");
break;
default:
sprintf(buf,"%d", sess->status);
pta[11]=strdup(buf);
Expand Down

0 comments on commit f4cd36c

Please sign in to comment.