Skip to content

Commit 97f237e

Browse files
mkaruzaJan Lindström
authored andcommitted
MDEV-25912 wsrep does not identify checksummed events correctly
For GTID consistenty, GTID events was artificialy added before replication happned. This event should not contain CHECKSUM calculated. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
1 parent cf483a7 commit 97f237e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/log.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5735,6 +5735,8 @@ THD::binlog_start_trans_and_stmt()
57355735
this->variables.gtid_domain_id,
57365736
true, LOG_EVENT_SUPPRESS_USE_F,
57375737
true, 0);
5738+
// Replicated events in writeset doesn't have checksum
5739+
gtid_event.checksum_alg= BINLOG_CHECKSUM_ALG_OFF;
57385740
gtid_event.server_id= this->variables.server_id;
57395741
writer.write(&gtid_event);
57405742
}

0 commit comments

Comments
 (0)