Skip to content

Commit

Permalink
follow comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Defined2014 committed Feb 8, 2023
1 parent 40328b2 commit 511cc5a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions domain/domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,13 +510,12 @@ func (do *Domain) Reload() error {
version -= 1
is, hitCache, oldSchemaVersion, changes, err = do.loadInfoSchema(version)
}
if err != nil {
metrics.LoadSchemaDuration.Observe(time.Since(startTime).Seconds())
metrics.LoadSchemaCounter.WithLabelValues("failed").Inc()
return err
}
}
metrics.LoadSchemaDuration.Observe(time.Since(startTime).Seconds())
if err != nil {
metrics.LoadSchemaCounter.WithLabelValues("failed").Inc()
return err
}
metrics.LoadSchemaCounter.WithLabelValues("succ").Inc()

// only update if it is not from cache
Expand Down

0 comments on commit 511cc5a

Please sign in to comment.