1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +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).
This commit is contained in:
guilhem@mysql.com
2004-03-10 16:56:28 +01:00
parent 30541b324c
commit 1c0d5ad25c
4 changed files with 8 additions and 6 deletions

View File

@@ -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;