Early instant DDL attempt by hasan-dot · Pull Request #1648 · github/gh-ost

added 2 commits

March 17, 2026 21:35
Move 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 hasan-dot changed the title Early instant DDL attempt + --force-instant-ddl flag Early instant DDL attempt

Mar 17, 2026

@hasan-dot

@hasan-dot

…tant-ddl

# Conflicts:
#	go/logic/applier.go

@hasan-dot hasan-dot marked this pull request as ready for review

March 30, 2026 16:40

@meiji163