Skip to content

Commit 3a16db3

Browse files
Fix validateAndReadTimeZone
Signed-off-by: Tim Vaillancourt <[email protected]>
1 parent 796406c commit 3a16db3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

go/logic/applier.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,7 @@ func (this *Applier) InitDBConnections() (err error) {
108108

109109
// validateAndReadTimeZone potentially reads server time-zone
110110
func (this *Applier) validateAndReadTimeZone() error {
111-
query := `select /* gh-ost */ @@global.time_zone`
112-
if err := this.db.QueryRow(query).Scan(&this.migrationContext.ApplierTimeZone); err != nil {
113-
return err
114-
}
115-
116-
this.migrationContext.Log.Infof("will use time_zone='%s' on applier", this.migrationContext.ApplierTimeZone)
111+
this.migrationContext.Log.Infof("will use time_zone='%s' on applier", this.ServerInfo().TimeZone)
117112
return nil
118113
}
119114

0 commit comments

Comments
 (0)