1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-4986: GTID - do not do on-disk update of master.info after every event group

This was actually implemented as part of MDEV-4506, parallel replication.
Unfortunately, one of the conditionals was reversed. So fsync of master.info
was disabled in non-gtid mode, instead of in gtid mode.

So fix the conditional to be correct.
This commit is contained in:
unknown
2013-11-29 15:46:09 +01:00
parent c23b36510e
commit 4bce09c104

View File

@ -3974,7 +3974,7 @@ Stopping slave I/O thread due to out-of-memory error from master");
goto err;
}
if (mi->using_gtid != Master_info::USE_GTID_NO &&
if (mi->using_gtid == Master_info::USE_GTID_NO &&
flush_master_info(mi, TRUE, TRUE))
{
sql_print_error("Failed to flush master info file");