Skip to content

Commit

Permalink
Merge pull request #13282 from yuzhiquan/fix-typo-migrate
Browse files Browse the repository at this point in the history
migrate_command: Fix typo in migrate
  • Loading branch information
spzala authored Aug 9, 2021
2 parents 706f256 + d0b9572 commit ea24fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etcdutl/etcdutl/migrate_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (o *migrateOptions) AddFlags(cmd *cobra.Command) {
cmd.MarkFlagRequired("data-dir")
cmd.MarkFlagDirname("data-dir")

cmd.Flags().StringVar(&o.targetVersion, "target-version", o.targetVersion, `Target etcd version to migrate contents of data dir. Minmal value 3.5. Format "X.Y" for example 3.6.`)
cmd.Flags().StringVar(&o.targetVersion, "target-version", o.targetVersion, `Target etcd version to migrate contents of data dir. Minimal value 3.5. Format "X.Y" for example 3.6.`)
cmd.MarkFlagRequired("target-version")

cmd.Flags().BoolVar(&o.force, "force", o.force, "Ignore migration failure and forcefully override storage version. Not recommended.")
Expand All @@ -84,7 +84,7 @@ func (o *migrateOptions) Config() (*migrateConfig, error) {
return nil, fmt.Errorf("failed to parse target version: %w", err)
}
if c.targetVersion.LessThan(schema.V3_5) {
return nil, fmt.Errorf(`target version %q not supported. Minimal "3.5".`, storageVersionToString(c.targetVersion))
return nil, fmt.Errorf(`target version %q not supported. Minimal "3.5"`, storageVersionToString(c.targetVersion))
}

dbPath := datadir.ToBackendFileName(o.dataDir)
Expand Down

0 comments on commit ea24fb8

Please sign in to comment.