From 71831157f96a79fada09c2e7a9298716dd6c424e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=91=E9=A3=8E?= Date: Tue, 14 Aug 2012 23:38:42 +0800 Subject: [PATCH] bugfix: redis bulk --- service/redis-cli.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/service/redis-cli.lua b/service/redis-cli.lua index 8a729fee..b9bc498c 100644 --- a/service/redis-cli.lua +++ b/service/redis-cli.lua @@ -22,7 +22,6 @@ end local function select_db(id) local result , ok = skynet.call(skynet.self(), skynet.unpack, skynet.pack("SELECT", tostring(id))) assert(result and ok == "OK") - print("select",id) end local function init() @@ -56,7 +55,7 @@ local redcmd = {} redcmd[42] = function(data) -- '*' local n = tonumber(data) - if n < 1 then + if n < 0 then response(true, nil) return end