Merge pull request #115 from github/serve-sooner

serving socket before counting table rows
This commit is contained in:
Shlomi Noach 2016-07-29 07:16:25 +02:00 committed by GitHub
commit 836f7515cb

View File

@ -396,6 +396,9 @@ func (this *Migrator) Migrate() (err error) {
if err := this.inspector.InspectOriginalAndGhostTables(); err != nil {
return err
}
if err := this.initiateServer(); err != nil {
return err
}
if this.migrationContext.CountTableRows {
if this.migrationContext.Noop {
log.Debugf("Noop operation; not really counting table rows")
@ -404,9 +407,6 @@ func (this *Migrator) Migrate() (err error) {
}
}
if err := this.initiateServer(); err != nil {
return err
}
if err := this.addDMLEventsListener(); err != nil {
return err
}