removed --time-zone flag

This commit is contained in:
Shlomi Noach 2016-10-14 12:53:23 +02:00
parent 0ee94e4d21
commit dcd2f36c88

View File

@ -48,7 +48,6 @@ func main() {
flag.IntVar(&migrationContext.InspectorConnectionConfig.Key.Port, "port", 3306, "MySQL port (preferably a replica, not the master)")
flag.StringVar(&migrationContext.CliUser, "user", "", "MySQL user")
flag.StringVar(&migrationContext.CliPassword, "password", "", "MySQL password")
timeZone := flag.String("time-zone", "", "assume timezone. Default: MySQL server global time zone.")
flag.StringVar(&migrationContext.ConfigFile, "conf", "", "Config file")
flag.StringVar(&migrationContext.DatabaseName, "database", "", "database name (mandatory)")
@ -205,9 +204,6 @@ func main() {
if err := migrationContext.SetCutOverLockTimeoutSeconds(*cutOverLockTimeoutSeconds); err != nil {
log.Errore(err)
}
if *timeZone != "" {
migrationContext.ApplierTimeZone = *timeZone
}
log.Infof("starting gh-ost %+v", AppVersion)
acceptSignals(migrationContext)