mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
bugfix: redis multi result
This commit is contained in:
@@ -124,10 +124,14 @@ redcmd[42] = function(data) -- '*'
|
|||||||
local bulk = {}
|
local bulk = {}
|
||||||
for i = 1,n do
|
for i = 1,n do
|
||||||
local line = readline "\r\n"
|
local line = readline "\r\n"
|
||||||
local bytes = tonumber(string.sub(line,2) + 2)
|
local bytes = tonumber(string.sub(line,2))
|
||||||
local data = readbytes(bytes)
|
if bytes < 0 then
|
||||||
|
table.insert(bulk, nil)
|
||||||
|
else
|
||||||
|
local data = readbytes(bytes + 2)
|
||||||
table.insert(bulk, string.sub(data,1,-3))
|
table.insert(bulk, string.sub(data,1,-3))
|
||||||
end
|
end
|
||||||
|
end
|
||||||
response(true, bulk)
|
response(true, bulk)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user