From 82dc3ff3c5d8c632b0b11636d0d0aabd37f14ae5 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Tue, 17 Nov 2015 09:47:21 +0100 Subject: [PATCH] Update lastReply with heartbeat event Update lastReply when heartbeat event is seen and a transaction is still open --- server/modules/routing/binlog/blr_master.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/modules/routing/binlog/blr_master.c b/server/modules/routing/binlog/blr_master.c index d27bfd047..43fa9b9ea 100644 --- a/server/modules/routing/binlog/blr_master.c +++ b/server/modules/routing/binlog/blr_master.c @@ -1225,6 +1225,8 @@ int n_bufs = -1, pn_bufs = -1; router->stats.n_heartbeats++; + if (router->pending_transaction) + router->stats.lastReply = time(0); } else if (hdr.flags != LOG_EVENT_ARTIFICIAL_F) {