From 6213b9f1ada135b34a49edb47ca2e9846152267a Mon Sep 17 00:00:00 2001 From: Jose Celestino Date: Thu, 6 Feb 2025 01:47:28 +0000 Subject: [PATCH] [Minor] On statistics_dump opts.cdb was doing dump_out and vice-versa --- lualib/rspamadm/statistics_dump.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lualib/rspamadm/statistics_dump.lua b/lualib/rspamadm/statistics_dump.lua index cbd0bce142..6a08d11fde 100644 --- a/lualib/rspamadm/statistics_dump.lua +++ b/lualib/rspamadm/statistics_dump.lua @@ -293,11 +293,11 @@ local function dump_pattern(conn, pattern, opts, out, key) -- Do not write the last chunk of out as it will be processed afterwards if cursor ~= 0 then if opts.cdb then - dump_out(out, opts, false) - clear_fcn(out) - else dump_cdb(out, opts, false, key) out[key].elts = {} + else + dump_out(out, opts, false) + clear_fcn(out) end elseif opts.cdb then dump_cdb(out, opts, true, key) -- 2.47.3