mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
fixed assertion failure on corrupted log in reckless slave mode
This commit is contained in:
parent
19c57455a5
commit
b82d2ff355
1 changed files with 2 additions and 0 deletions
|
@ -1115,6 +1115,7 @@ static inline int add_relay_log(RELAY_LOG_INFO* rli,LOG_INFO* linfo)
|
|||
static bool wait_for_relay_log_space(RELAY_LOG_INFO* rli)
|
||||
{
|
||||
bool slave_killed;
|
||||
LINT_INIT(slave_killed);
|
||||
MASTER_INFO* mi = rli->mi;
|
||||
const char* save_proc_info;
|
||||
THD* thd = mi->io_thd;
|
||||
|
@ -2579,6 +2580,7 @@ Log_event* next_event(RELAY_LOG_INFO* rli)
|
|||
goto err;
|
||||
}
|
||||
rli->relay_log_pos = 4;
|
||||
rli->pending=0;
|
||||
strnmov(rli->relay_log_name,rli->linfo.log_file_name,
|
||||
sizeof(rli->relay_log_name));
|
||||
flush_relay_log_info(rli);
|
||||
|
|
Loading…
Add table
Reference in a new issue