From: Petr Špaček Date: Thu, 16 Aug 2018 15:08:37 +0000 (+0200) Subject: cache.clear: use same output format for exact qname+qtype match X-Git-Tag: v3.0.0~1^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df2c95aa41fcc603676345c5ae262332f9f52af3;p=thirdparty%2Fknot-resolver.git cache.clear: use same output format for exact qname+qtype match --- diff --git a/daemon/lua/sandbox.lua b/daemon/lua/sandbox.lua index 9912eee11..1768df773 100644 --- a/daemon/lua/sandbox.lua +++ b/daemon/lua/sandbox.lua @@ -194,7 +194,7 @@ cache.clear = function (name, exact_name, rr_type, chunk_size, callback) then error('cache.clear(): chunk_size and callback parameters not supported with rr_type') end local ret = ffi.C.kr_cache_remove(cach, dname, rr_type) if ret < 0 then error(ffi.string(ffi.C.knot_strerror(ret))) end - return true + return {count = 1} end if chunk_size == nil then chunk_size = 100 end