From 51f32bf12e3f2a8aa5144e21d1c749b333bd8811 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 19 Aug 2016 13:45:53 +0200 Subject: [PATCH] [Minor] Deal with non-nil REDIS_NIL in multimap --- src/plugins/lua/multimap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index b36fe9f79..99576a511 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -276,7 +276,7 @@ local function multimap_callback(task, rule) end local function redis_map_cb(task, err, data) - if not err and data then + if not err and type(data) ~= 'userdata' then callback(data) end end -- 2.39.5