diff --git a/server/modules/routing/binlog/blr_slave.c b/server/modules/routing/binlog/blr_slave.c index ee8f6c2ea..8f27f6425 100644 --- a/server/modules/routing/binlog/blr_slave.c +++ b/server/modules/routing/binlog/blr_slave.c @@ -1577,7 +1577,7 @@ ROUTER_SLAVE *sptr; sptr = router->slaves; while (sptr) { - if (sptr->state != 0) + if (sptr->state == BLRS_DUMPING || sptr->state == BLRS_REGISTERED) { sprintf(server_id, "%d", sptr->serverid); sprintf(host, "%s", sptr->hostname ? sptr->hostname : "");