summaryrefslogtreecommitdiff
path: root/sql/sql_repl.cc
diff options
context:
space:
mode:
authorguilhem@mysql.com <>2004-03-10 16:56:28 +0100
committerguilhem@mysql.com <>2004-03-10 16:56:28 +0100
commit1c0d5ad25c1f530093586e7624ae3603ff719061 (patch)
tree46e90eed3c4eb4203616844eb60c039281f944ec /sql/sql_repl.cc
parent30541b324cddeac4c948fecc304dfdd86ee12a31 (diff)
downloadmariadb-git-1c0d5ad25c1f530093586e7624ae3603ff719061.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).
Diffstat (limited to 'sql/sql_repl.cc')
-rw-r--r--sql/sql_repl.cc2
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;