Slave heartbeat period is reported in diagnostics

Slave heartbeat period is reported in diagnostics only if router option
is set
This commit is contained in:
MassimilianoPinto
2015-09-30 15:21:18 +02:00
parent 21509616e9
commit 680589ed46
3 changed files with 6 additions and 5 deletions

View File

@ -1614,7 +1614,7 @@ int action;
slave->lastEventReceived = hdr->event_type;
/* set lastReply */
if (router->send_slave_heartbeat == 1)
if (router->send_slave_heartbeat)
slave->lastReply = time(0);
pkt = gwbuf_alloc(hdr->event_size + 5);