mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
bugfix: redis bulk
This commit is contained in:
@@ -22,7 +22,6 @@ end
|
|||||||
local function select_db(id)
|
local function select_db(id)
|
||||||
local result , ok = skynet.call(skynet.self(), skynet.unpack, skynet.pack("SELECT", tostring(id)))
|
local result , ok = skynet.call(skynet.self(), skynet.unpack, skynet.pack("SELECT", tostring(id)))
|
||||||
assert(result and ok == "OK")
|
assert(result and ok == "OK")
|
||||||
print("select",id)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
local function init()
|
local function init()
|
||||||
@@ -56,7 +55,7 @@ local redcmd = {}
|
|||||||
|
|
||||||
redcmd[42] = function(data) -- '*'
|
redcmd[42] = function(data) -- '*'
|
||||||
local n = tonumber(data)
|
local n = tonumber(data)
|
||||||
if n < 1 then
|
if n < 0 then
|
||||||
response(true, nil)
|
response(true, nil)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user