From: Jose Celestino Date: Thu, 6 Feb 2025 01:47:28 +0000 (+0000) Subject: [Minor] On statistics_dump opts.cdb was doing dump_out and vice-versa X-Git-Tag: 3.11.1~16^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F5335%2Fhead;p=thirdparty%2Frspamd.git [Minor] On statistics_dump opts.cdb was doing dump_out and vice-versa --- 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)