The STOP_EVENT is written to the binary log when the server shuts down, serving as a marker for a clean stop.
The master server writes the event to the binary log when it shuts down, or when resuming after a mariadbd process crash.
A new binary log file is always created, but there is no ROTATE_EVENT.
STOP_EVENT is the last written event after a clean shutdown, or when resuming after a crash.
This event is never sent to replica servers.
Event header with EventType set to STOP_EVENT (0x03).
Event header NextPos set to EOF .
No special flags added.
The event has no data.
Event size = header[19] + 0 bytes data + 4 CRC32 = 23.
This page is licensed: CC BY-SA / Gnu FDL
3a b8 15 5a 03 01 00 00 00 17 00 00 00 09 0c 00 ..Z............
00 00 00 4e 99 ee 2c ...N..,