mirror of
https://github.com/MariaDB/server.git
synced 2025-08-05 13:16:09 +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:
@@ -3974,7 +3974,7 @@ Stopping slave I/O thread due to out-of-memory error from master");
|
|||||||
goto err;
|
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))
|
flush_master_info(mi, TRUE, TRUE))
|
||||||
{
|
{
|
||||||
sql_print_error("Failed to flush master info file");
|
sql_print_error("Failed to flush master info file");
|
||||||
|
Reference in New Issue
Block a user