Skip to content

Commit

Permalink
config: check if valid storage by simple indexing (#19535) (#20342)
Browse files Browse the repository at this point in the history
  • Loading branch information
ti-srebot authored Oct 9, 2020
1 parent 81b8cf6 commit d1b10d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ func (c *Config) Valid() error {
if c.Security.SkipGrantTable && !hasRootPrivilege() {
return fmt.Errorf("TiDB run with skip-grant-table need root privilege")
}
if _, ok := ValidStorage[c.Store]; !ok {
if !ValidStorage[c.Store] {
nameList := make([]string, 0, len(ValidStorage))
for k, v := range ValidStorage {
if v {
Expand Down

0 comments on commit d1b10d4

Please sign in to comment.