In this eighth post of our series, we decode the three row events — WRITE_ROWS_EVENT, UPDATE_ROWS_EVENT, and DELETE_ROWS_EVENT — that carry the actual row data for INSERT, UPDATE, and DELETE operations in row-based replication.
Introduction
In the previous posts, we decoded the events that set the stage
for row-based replication: the GTID_LOG_EVENT identifies the
transaction, the QUERY_EVENT opens it
with BEGIN, and the TABLE_MAP_EVENT describes
the table's schema. Now we finally arrive at the events that
carry the actual data — the row events.
All three row events share the same base structure defined by
the Rows_event class. The
differences come down to which row
images each event carries: …