]> source.dussan.org Git - rspamd.git/commit
[Fix] ClickHouse cleanup of old partitions 4074/head
authorAnton Yuzhaninov <citrin+git@citrin.ru>
Thu, 10 Feb 2022 10:05:08 +0000 (10:05 +0000)
committerAnton Yuzhaninov <citrin+git@citrin.ru>
Thu, 10 Feb 2022 10:05:08 +0000 (10:05 +0000)
commitff10dae97e5720fe600420450488d80cc272df0e
tree65736cec88aa0e5cd285f39c730dd211cba36f59
parent4d584cad637c001cf4026d23cb46b0fb06d2999b
[Fix] ClickHouse cleanup of old partitions

If /var/lib/rspamd/clickhouse_retention_run is missing or has no
number cleanup was not performed because of a following Lua error:

lua_periodic_callback_error: call to periodic script (registered at clickhouse.lua:1531) failed: /usr/share/rspamd/plugins/clickhouse.lua:991: attempt to compare number with nil; trace: [1]:{/usr/share/rspamd/plugins/clickhouse.lua:1069 - <unknown> [Lua]};
src/plugins/lua/clickhouse.lua