From 203e83d5088f013b1d27f9c48373b824bd01118e Mon Sep 17 00:00:00 2001 From: Mark Riddoch Date: Tue, 16 Dec 2014 15:35:39 +0000 Subject: [PATCH] Update to COM_STATISTICS to show master connection state --- server/modules/routing/binlog/blr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/modules/routing/binlog/blr.c b/server/modules/routing/binlog/blr.c index 42e714f1b..747a31ada 100644 --- a/server/modules/routing/binlog/blr.c +++ b/server/modules/routing/binlog/blr.c @@ -1066,11 +1066,12 @@ GWBUF *ret; int len; snprintf(result, 1000, - "Uptime: %u Threads: %u Events: %u Slaves: %u", + "Uptime: %u Threads: %u Events: %u Slaves: %u Master State: %s", time(0) - router->connect_time, config_threadcount(), router->stats.n_binlogs_ses, - router->stats.n_slaves); + router->stats.n_slaves, + blrm_states[router->master_state]); if ((ret = gwbuf_alloc(4 + strlen(result))) == NULL) return 0; len = strlen(result);