diff options
Diffstat (limited to 'sql/repl_failsafe.cc')
-rw-r--r-- | sql/repl_failsafe.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/repl_failsafe.cc b/sql/repl_failsafe.cc index 374ef77c297..fee8a538fa9 100644 --- a/sql/repl_failsafe.cc +++ b/sql/repl_failsafe.cc @@ -246,7 +246,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"); @@ -420,7 +421,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'", |