-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PS-9238: Make MySQL 5.7 compatible with
CREATE TABLE AS SELECT [...] START TRANSACTION to improve 8.0 -> 5.7 replication reliability https://perconadev.atlassian.net/browse/PS-9238 Part 2 of the fix. In the scenario source -> replica1 -> replica2, if replica1 is configured with ctas_compatibility_mode it should behave accordingly and produce the binglog compatible with version 8.0.20 (intermediate commit after CREATE TABLE and no START TRANSACTION clause) This part is sensitive to create_info->m_transactional_ddl flag which is set during statement parsing. If ctas_compatibility_mode is set, we force this flag not to be set. Additionally, replica side follows the path of regular CREATE TABLE which binlogs the query as-is. if ctas_compatibility_mode is set, CREATE TABLE is removed from the query.
- Loading branch information
1 parent
31f5131
commit 966f479
Showing
4 changed files
with
126 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters