Update lastReply with heartbeat event

Update lastReply when heartbeat event is seen and a transaction is
still open
This commit is contained in:
MassimilianoPinto
2015-11-17 09:47:21 +01:00
parent a90b336cc4
commit 82dc3ff3c5

View File

@ -1225,6 +1225,8 @@ int n_bufs = -1, pn_bufs = -1;
router->stats.n_heartbeats++; router->stats.n_heartbeats++;
if (router->pending_transaction)
router->stats.lastReply = time(0);
} }
else if (hdr.flags != LOG_EVENT_ARTIFICIAL_F) else if (hdr.flags != LOG_EVENT_ARTIFICIAL_F)
{ {