diff options
author | unknown <guilhem@mysql.com> | 2004-03-10 16:56:28 +0100 |
---|---|---|
committer | unknown <guilhem@mysql.com> | 2004-03-10 16:56:28 +0100 |
commit | fc192448fc8bb79e6e43f3b50975f27f393c37ed (patch) | |
tree | 46e90eed3c4eb4203616844eb60c039281f944ec /sql/sql_repl.cc | |
parent | 3768f9efa1f55d66fa6064bdf3f52b0c57120d3c (diff) | |
download | mariadb-git-fc192448fc8bb79e6e43f3b50975f27f393c37ed.tar.gz |
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
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r-- | sql/sql_repl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_repl.cc b/sql/sql_repl.cc index 7c56670935b..cff36eaa388 100644 --- a/sql/sql_repl.cc +++ b/sql/sql_repl.cc @@ -958,7 +958,7 @@ int change_master(THD* thd, MASTER_INFO* mi) sizeof(mi->master_log_name)-1); } - flush_master_info(mi); + flush_master_info(mi, 0); if (need_relay_log_purge) { mi->rli.skip_log_purge= 0; |