mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-4688: empty @@gtid_slave_pos during slave commit.
In record_gtid(), too many rows were deleted from the slave position hash - we need to always keep on to the most recent committed row, so we have a valid slave position at all times.
This commit is contained in:
@@ -6927,6 +6927,12 @@ int Xid_log_event::do_apply_event(Relay_log_info const *rli)
|
||||
thd->is_slave_error= 1;
|
||||
return err;
|
||||
}
|
||||
|
||||
DBUG_EXECUTE_IF("gtid_fail_after_record_gtid",
|
||||
{ my_error(ER_ERROR_DURING_COMMIT, MYF(0), HA_ERR_WRONG_COMMAND);
|
||||
thd->is_slave_error= 1;
|
||||
return 1;
|
||||
});
|
||||
}
|
||||
|
||||
/* For a slave Xid_log_event is COMMIT */
|
||||
|
Reference in New Issue
Block a user