Merge pull request #115 from github/serve-sooner
serving socket before counting table rows
This commit is contained in:
commit
836f7515cb
@ -396,6 +396,9 @@ func (this *Migrator) Migrate() (err error) {
|
|||||||
if err := this.inspector.InspectOriginalAndGhostTables(); err != nil {
|
if err := this.inspector.InspectOriginalAndGhostTables(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err := this.initiateServer(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
if this.migrationContext.CountTableRows {
|
if this.migrationContext.CountTableRows {
|
||||||
if this.migrationContext.Noop {
|
if this.migrationContext.Noop {
|
||||||
log.Debugf("Noop operation; not really counting table rows")
|
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 {
|
if err := this.addDMLEventsListener(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user