Merge pull request #321 from rj03hou/myisam-gtid

If the original table is MyISAM and the default engine is Innodb, and…
This commit is contained in:
Shlomi Noach 2016-12-02 09:06:16 +01:00 committed by GitHub
commit b736741b61

View File

@ -703,10 +703,11 @@ func (this *Applier) CreateAtomicCutOverSentryTable() error {
query := fmt.Sprintf(`create /* gh-ost */ table %s.%s ( query := fmt.Sprintf(`create /* gh-ost */ table %s.%s (
id int auto_increment primary key id int auto_increment primary key
) comment='%s' ) engine=%s comment='%s'
`, `,
sql.EscapeName(this.migrationContext.DatabaseName), sql.EscapeName(this.migrationContext.DatabaseName),
sql.EscapeName(tableName), sql.EscapeName(tableName),
this.migrationContext.TableEngine,
atomicCutOverMagicHint, atomicCutOverMagicHint,
) )
log.Infof("Creating magic cut-over table %s.%s", log.Infof("Creating magic cut-over table %s.%s",