This commit is contained in:
Vladimir Mihailenco 2019-11-19 12:37:26 +02:00
parent eb64034d44
commit dab9d3f802
2 changed files with 7 additions and 6 deletions

View File

@ -4,8 +4,6 @@ all: testdeps
go test ./... -run=NONE -bench=. -benchmem go test ./... -run=NONE -bench=. -benchmem
env GOOS=linux GOARCH=386 go test ./... env GOOS=linux GOARCH=386 go test ./...
go vet go vet
go get github.com/gordonklaus/ineffassign
ineffassign .
golangci-lint run golangci-lint run
testdeps: testdata/redis/src/redis-server testdeps: testdata/redis/src/redis-server

View File

@ -2005,12 +2005,15 @@ func (c *cmdsInfoCache) Get() (map[string]*CommandInfo, error) {
if err != nil { if err != nil {
return err return err
} }
for key := range cmds {
lowerKey := internal.ToLower(key) // Extensions have cmd names in upper case. Convert them to lower case.
if key != lowerKey { for k, v := range cmds {
cmds[lowerKey] = cmds[key] lower := internal.ToLower(k)
if lower != k {
cmds[lower] = v
} }
} }
c.cmds = cmds c.cmds = cmds
return nil return nil
}) })