Update redis.lua

exec执行时其中一条出错,看不到错误信息
This commit is contained in:
rickone
2016-04-01 12:39:09 +08:00
parent 8de3149485
commit 5332021086

View File

@@ -54,11 +54,10 @@ redcmd[42] = function(fd, data) -- '*'
local noerr = true
for i = 1,n do
local ok, v = read_response(fd)
if ok then
bulk[i] = v
else
if not ok then
noerr = false
end
bulk[i] = v
end
return noerr, bulk
end