mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Backport MySQL WL#2540 into MariaDB.
Patch backported: bzr diff '-rrevid:alfranio.correia@oracle.com-20101121143257-se3vpqus73l4mum0 ..revid:luis.soares@oracle.com-20101124111752-9b8260bd1qak87hr' --old=lp:mysql-server --new=lp:mysql-server
This commit is contained in:
@ -244,7 +244,8 @@ static int find_target_pos(LEX_MASTER_INFO *mi, IO_CACHE *log, char *errmsg)
|
||||
for (;;)
|
||||
{
|
||||
Log_event* ev;
|
||||
if (!(ev = Log_event::read_log_event(log, (pthread_mutex_t*) 0, 0)))
|
||||
if (!(ev = Log_event::read_log_event(log, (pthread_mutex_t*) 0, 0,
|
||||
opt_slave_sql_verify_checksum)))
|
||||
{
|
||||
if (log->error > 0)
|
||||
strmov(errmsg, "Binary log truncated in the middle of event");
|
||||
@ -418,7 +419,8 @@ static Slave_log_event* find_slave_event(IO_CACHE* log,
|
||||
|
||||
for (i = 0; i < 2; i++)
|
||||
{
|
||||
if (!(ev = Log_event::read_log_event(log, (pthread_mutex_t*)0, 0)))
|
||||
if (!(ev = Log_event::read_log_event(log, (pthread_mutex_t*)0, 0,
|
||||
opt_slave_sql_verify_checksum)))
|
||||
{
|
||||
my_snprintf(errmsg, SLAVE_ERRMSG_SIZE,
|
||||
"Error reading event in log '%s'",
|
||||
|
Reference in New Issue
Block a user