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:
parent
c23b36510e
commit
4bce09c104
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user