bugfix: redis bulk

This commit is contained in:
云风
2012-08-14 23:38:42 +08:00
parent be0b4ee0db
commit 71831157f9

View File

@@ -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