]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
cache.clear: use same output format for exact qname+qtype match
authorPetr Špaček <petr.spacek@nic.cz>
Thu, 16 Aug 2018 15:08:37 +0000 (17:08 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Fri, 17 Aug 2018 13:58:49 +0000 (15:58 +0200)
daemon/lua/sandbox.lua

index 9912eee1147bffb88446d54028378930e7efe0a2..1768df7739520a54d6e4cfa89c39209c07c8baf2 100644 (file)
@@ -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