We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 796406c commit 3a16db3Copy full SHA for 3a16db3
go/logic/applier.go
@@ -108,12 +108,7 @@ func (this *Applier) InitDBConnections() (err error) {
108
109
// validateAndReadTimeZone potentially reads server time-zone
110
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)
+ this.migrationContext.Log.Infof("will use time_zone='%s' on applier", this.ServerInfo().TimeZone)
117
return nil
118
}
119
0 commit comments