]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Clickhouse: Fix periodic script
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 4 Nov 2019 13:02:37 +0000 (13:02 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 4 Nov 2019 13:02:37 +0000 (13:02 +0000)
src/plugins/lua/clickhouse.lua

index cd9d992d8b16121c0dd4c8dc2e552e7a42c3aeb8..878a1506485f6ffea90ff81bea4ca49fbff9e67f 100644 (file)
@@ -930,7 +930,7 @@ local function clickhouse_maybe_send_data_periodic(cfg, ev_base, now)
   end
 
   if settings.limits.max_rows > 0 then
-    if nrows > settings.max_rows then
+    if nrows > settings.limits.max_rows then
       need_collect = true
       reason = string.format('limit of rows has been reached: %d', nrows)
     end