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>
This commit is contained in:
mkaruza 2022-03-24 17:14:28 +01:00 committed by Jan Lindström
parent cf483a7766
commit 97f237e66d

View File

@ -5735,6 +5735,8 @@ THD::binlog_start_trans_and_stmt()
this->variables.gtid_domain_id,
true, LOG_EVENT_SUPPRESS_USE_F,
true, 0);
// Replicated events in writeset doesn't have checksum
gtid_event.checksum_alg= BINLOG_CHECKSUM_ALG_OFF;
gtid_event.server_id= this->variables.server_id;
writer.write(&gtid_event);
}