Skip to content

Commit a9bdb59

Browse files
committed
Adds documentation for row-based replication flags
- binlog_row_metadata - binlog_row_image
1 parent 5399994 commit a9bdb59

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

replication/row_event.go

+13-3
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ type TableMapEvent struct {
3838
NullBitmap []byte
3939

4040
/*
41-
The followings are available only after MySQL-8.0.1 or MariaDB-10.5.0
41+
The following are available only after MySQL-8.0.1 or MariaDB-10.5.0
42+
By default MySQL and MariaDB do not log the full row metadata.
4243
see:
4344
- https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_metadata
44-
- https://mysqlhighavailability.com/more-metadata-is-written-into-binary-log/
45-
- https://jira.mariadb.org/browse/MDEV-20477
45+
- https://mariadb.com/kb/en/replication-and-binary-log-system-variables/#binlog_row_metadata
4646
*/
4747

4848
// SignednessBitmap stores signedness info for numeric columns.
@@ -830,6 +830,16 @@ type RowsEvent struct {
830830

831831
//lenenc_int
832832
ColumnCount uint64
833+
834+
/*
835+
By default MySQL and MariaDB log the full row image.
836+
see
837+
- https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_row_image
838+
- https://mariadb.com/kb/en/replication-and-binary-log-system-variables/#binlog_row_image
839+
840+
ColumnBitmap1, ColumnBitmap2 and SkippedColumns are not set on the full row image.
841+
*/
842+
833843
//len = (ColumnCount + 7) / 8
834844
ColumnBitmap1 []byte
835845

0 commit comments

Comments
 (0)