Early instant DDL attempt by hasan-dot · Pull Request #1648 · github/gh-ost
added 2 commits
March 17, 2026 21:35Move the --attempt-instant-ddl check to run before ghost table and binlog streaming setup. If instant DDL succeeds, the migration completes immediately without creating ghost tables, changelog tables, or starting binlog streaming. Add --force-instant-ddl flag that aborts the migration if ALGORITHM=INSTANT is not supported, preventing accidental multi-hour row-copy migrations when the intent was an instant metadata change.
Remove the now-unused AttemptInstantDDL() method from Applier since instant DDL is handled by attemptInstantDDLEarly() in the Migrator. Update command-line-flags.md to document the new early execution behavior of --attempt-instant-ddl and add documentation for --force-instant-ddl. Add localtests/force-instant-ddl with an instant-compatible ALTER to exercise the --force-instant-ddl success path.
hasan-dot
changed the title
Early instant DDL attempt + --force-instant-ddl flag
Early instant DDL attempt
hasan-dot
marked this pull request as ready for review
This file contains hidden or 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