From ac0de09c7cd6eff09440a86175014f4e720b19e2 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Fri, 8 Sep 2017 11:41:44 +0200 Subject: [PATCH] Fix log message when GTID is in use Fix log message when GTID is in use --- server/modules/routing/binlogrouter/blr_master.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/modules/routing/binlogrouter/blr_master.c b/server/modules/routing/binlogrouter/blr_master.c index 07093e6ad..a4c5478d9 100644 --- a/server/modules/routing/binlogrouter/blr_master.c +++ b/server/modules/routing/binlogrouter/blr_master.c @@ -294,12 +294,14 @@ static void blr_start_master(void* data) router->master->remote = MXS_STRDUP_A(router->service->dbref->server->name); MXS_NOTICE("%s: attempting to connect to master" - " server [%s]:%d, binlog %s, pos %lu", + " server [%s]:%d, binlog='%s', pos=%lu%s%s", router->service->name, router->service->dbref->server->name, router->service->dbref->server->port, router->binlog_name, - router->current_pos); + router->current_pos, + router->mariadb10_master_gtid ? ", GTID=" : "", + router->mariadb10_master_gtid ? router->last_mariadb_gtid : ""); router->connect_time = time(0);