Update lastReply with heartbeat event
Update lastReply when heartbeat event is seen and a transaction is still open
This commit is contained in:
@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user