Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt INSTANT DDL first #1201

Merged
merged 10 commits into from
Nov 16, 2022
Merged

Attempt INSTANT DDL first #1201

merged 10 commits into from
Nov 16, 2022

Conversation

morgo
Copy link
Contributor

@morgo morgo commented Nov 14, 2022

Fixes #1198

Description

This adds support for attempting INSTANT DDL from MySQL 8.0 before applying gh-ost's original algorithm. It is disabled by default for now (per suggestion), although in future it makes sense to enable by default and hide behind version detection.

In case this PR introduced Go code changes:

  • contributed code is using same conventions as original code
  • script/cibuild returns with no formatting errors, build errors or unit test errors.

Copy link
Collaborator

@timvaillancourt timvaillancourt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @morgo! I like the flag approach 👍

Added a few comments inline

Copy link
Contributor

@dm-2 dm-2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added some thoughts around docs/output - the actual code looks good to me though 👍

doc/command-line-flags.md Show resolved Hide resolved
go/logic/migrator.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@timvaillancourt timvaillancourt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍. Thanks again @morgo!

Copy link
Contributor

@dm-2 dm-2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @morgo, this looks great! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use mysql 8.0 INSTANT DDL if supported
3 participants