Network streams are requested with
COM_BINLOG_DUMP
and prepend each Binlog
Event with 00
OK-byte.
Network streams are requested with
COM_BINLOG_DUMP
and prepend each Binlog
Event with 00
OK-byte.
The network stream will also contain fake rotation events. These will be inserted at the beginning of the stream and before any real rotation event. To keep this brief, if you are curious as to why that is the case, you should read the comments around any call site of "fake_rotate_event" in sql/sql_repl.cc.
The fake rotation events have the following properties:
1) The timestamp field in the header is set to 0. This is explicitly documented in the source to be the case so that slaves can distinguish between real and fake rotate events
2) The next_position field in the header is set to 0.
3) The flags field has the LOG_EVENT_ARTIFICIAL_F flag set.