Addition of some extra log messages and seconds behind master calcuation

This commit is contained in:
Mark Riddoch
2015-02-09 20:50:23 +00:00
parent e3c8979ee1
commit b58e09cdb7
4 changed files with 26 additions and 1 deletions

View File

@ -887,6 +887,7 @@ static REP_HEADER phdr;
}
router->stats.n_binlogs++;
router->lastEventReceived = hdr.event_type;
router->lastEventTimestamp = hdr.timestamp;
// #define SHOW_EVENTS
#ifdef SHOW_EVENTS
@ -1251,6 +1252,7 @@ int action;
* this is a rotate event. Send the event directly from
* memory to the slave.
*/
slave->lastEventTimestamp = hdr->timestamp;
pkt = gwbuf_alloc(hdr->event_size + 5);
buf = GWBUF_DATA(pkt);
encode_value(buf, hdr->event_size + 1, 24);