Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Manan007224 committed Jul 8, 2021
1 parent 13b3027 commit 723770e
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ferry.go
Original file line number Diff line number Diff line change
Expand Up @@ -712,11 +712,10 @@ func (f *Ferry) Run() {
}

schemaFingerVerifierPrintWg := &sync.WaitGroup{}
schemaFingerPrintVerifierContext, stopSchemaFingerprintVerifier := context.WithCancel(ctx)
schemaFingerVerifierPrintWg.Add(1)
go func() {
defer schemaFingerVerifierPrintWg.Done()
f.SchemaFingerPrintVerifier.PeriodicallyVerifySchemaFingerprints(schemaFingerPrintVerifierContext)
f.SchemaFingerPrintVerifier.PeriodicallyVerifySchemaFingerprints(ctx)
}()

inlineVerifierWg := &sync.WaitGroup{}
Expand Down Expand Up @@ -815,14 +814,13 @@ func (f *Ferry) Run() {

binlogWg.Wait()

stopSchemaFingerprintVerifier()
schemaFingerVerifierPrintWg.Wait()

f.logger.Info("ghostferry run is complete, shutting down auxiliary services")
f.OverallState.Store(StateDone)
f.DoneTime = time.Now()

shutdown()

schemaFingerVerifierPrintWg.Wait()
supportingServicesWg.Wait()

if f.Config.ProgressCallback.URI != "" {
Expand Down

0 comments on commit 723770e

Please sign in to comment.