mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Backporting parts of
ChangeSet 1.1620.12.1 and ChangeSet 1.1625.2.1 from 4.1. This makes the slave I/O thread flush the relay log after every event, which provides additional safety in case of brutal crash (reduces chances to lose a part of the relay log). sql/repl_failsafe.cc: update for new prototype sql/slave.cc: The slave I/O thread now flushes the relay log after writing every event to it, like we already do in 4.1. sql/slave.h: new prototype sql/sql_repl.cc: update for new prototype
This commit is contained in:
@ -894,7 +894,7 @@ int load_master_data(THD* thd)
|
||||
if (active_mi->master_log_pos < BIN_LOG_HEADER_SIZE)
|
||||
active_mi->master_log_pos = BIN_LOG_HEADER_SIZE;
|
||||
active_mi->rli.pending = 0;
|
||||
flush_master_info(active_mi);
|
||||
flush_master_info(active_mi, 0);
|
||||
}
|
||||
mc_mysql_free_result(master_status_res);
|
||||
}
|
||||
|
Reference in New Issue
Block a user