Skip to content

Commit

Permalink
Fix validateAndReadTimeZone
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Dec 8, 2023
1 parent 796406c commit 3a16db3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions go/logic/applier.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,7 @@ func (this *Applier) InitDBConnections() (err error) {

// validateAndReadTimeZone potentially reads server time-zone
func (this *Applier) validateAndReadTimeZone() error {

Check failure on line 110 in go/logic/applier.go

View workflow job for this annotation

GitHub Actions / lint

(*Applier).validateAndReadTimeZone - result 0 (error) is always nil (unparam)
query := `select /* gh-ost */ @@global.time_zone`
if err := this.db.QueryRow(query).Scan(&this.migrationContext.ApplierTimeZone); err != nil {
return err
}

this.migrationContext.Log.Infof("will use time_zone='%s' on applier", this.migrationContext.ApplierTimeZone)
this.migrationContext.Log.Infof("will use time_zone='%s' on applier", this.ServerInfo().TimeZone)
return nil
}

Expand Down

0 comments on commit 3a16db3

Please sign in to comment.