forked from mirror/redis
Merge pull request #439 from rayzyar/evalShaFirstKey
evalsha with 0 key should return -1 pos
This commit is contained in:
commit
30be278fea
|
@ -95,7 +95,7 @@ func cmdFirstKeyPos(cmd Cmder, info *CommandInfo) int {
|
||||||
if cmd.arg(2) != "0" {
|
if cmd.arg(2) != "0" {
|
||||||
return 3
|
return 3
|
||||||
} else {
|
} else {
|
||||||
return 0
|
return -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if info == nil {
|
if info == nil {
|
||||||
|
|
Loading…
Reference in New Issue