Commit 4bce09c1 authored by unknown's avatar unknown

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.
parent c23b3651
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment