Added Connecting state in Slave_IO_Running
Added ‘Connecting’ state in Slave_IO_Running field of SHOW SLAVE STATUS
This commit is contained in:
parent
7b9d54d1d4
commit
f22e2ec87b
@ -1092,10 +1092,14 @@ char *dyn_column=NULL;
|
||||
strncpy((char *)ptr, column, col_len); // Result string
|
||||
ptr += col_len;
|
||||
|
||||
if (router->master_state != BLRM_SLAVE_STOPPED)
|
||||
strcpy(column, "Yes");
|
||||
else
|
||||
if (router->master_state != BLRM_SLAVE_STOPPED) {
|
||||
if (router->master_state < BLRM_BINLOGDUMP)
|
||||
strcpy(column, "Connecting");
|
||||
else
|
||||
strcpy(column, "Yes");
|
||||
} else {
|
||||
strcpy(column, "No");
|
||||
}
|
||||
col_len = strlen(column);
|
||||
*ptr++ = col_len; // Length of result string
|
||||
strncpy((char *)ptr, column, col_len); // Result string
|
||||
|
Loading…
x
Reference in New Issue
Block a user