From f22e2ec87b42b4ee80de8a6084fcf6526c86f6fd Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Wed, 15 Jul 2015 09:18:55 +0200 Subject: [PATCH] Added Connecting state in Slave_IO_Running MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added ‘Connecting’ state in Slave_IO_Running field of SHOW SLAVE STATUS --- server/modules/routing/binlog/blr_slave.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/server/modules/routing/binlog/blr_slave.c b/server/modules/routing/binlog/blr_slave.c index 853ec323e..730ecf63d 100644 --- a/server/modules/routing/binlog/blr_slave.c +++ b/server/modules/routing/binlog/blr_slave.c @@ -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