bugfix: execCommand

This commit is contained in:
finley
2023-05-20 16:13:06 +08:00
parent edfbe75dfd
commit c7dda00118
3 changed files with 16 additions and 18 deletions

View File

@@ -122,7 +122,7 @@ func (server *Server) Exec(c redis.Connection, cmdLine [][]byte) (result redis.R
}
return server.execSlaveOf(c, cmdLine[1:])
} else if cmdName == "command" {
return execCommand(cmdLine)
return execCommand(cmdLine[1:])
}
// read only slave