MDEV-31273: Precompute binlog checksums

After b8f9f796 Format_description_log_event constructor
requires binlog checksum algorithm or BINLOG_CHECKSUM_ALG_OFF
for Galera also.

Thanks to Kristian Nielsen <knielsen@knielsen-hq.org>
for pointing a fix.
This commit is contained in:
Jan Lindström
2023-11-14 09:24:46 +02:00
parent 9e457cbe50
commit 99a3fe54d9

View File

@ -30,6 +30,7 @@
#define NUMBER_OF_FIELDS_TO_IDENTIFY_WORKER 2
#include "slave.h"
#include "rpl_mi.h"
#include "rpl_constants.h"
namespace
{
@ -70,7 +71,7 @@ static rpl_group_info* wsrep_relay_group_init(THD* thd, const char* log_fname)
if (!rli->relay_log.description_event_for_exec)
{
rli->relay_log.description_event_for_exec=
new Format_description_log_event(4);
new Format_description_log_event(4, 0, BINLOG_CHECKSUM_ALG_OFF);
}
static LEX_CSTRING connection_name= { STRING_WITH_LEN("wsrep") };