]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Do not save config changes indefinitely
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 1 Nov 2016 11:59:50 +0000 (11:59 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 1 Nov 2016 11:59:50 +0000 (11:59 +0000)
src/plugins/lua/dynamic_conf.lua

index 254b93f1f2806223bc22061a3d60c772635fcb73..4f984cbe18c4c73f6dcef686b2b3dcef2d9b8c83 100644 (file)
@@ -172,6 +172,9 @@ local function update_dynamic_conf(cfg, ev_base, recv)
       rspamd_logger.errx(cfg, "cannot save dynamic conf version to redis: %s", err)
     else
       rspamd_logger.infox(cfg, "saved dynamic conf version: %s", data)
+      cur_settings.updates.has_updates = false
+      cur_settings.updates.symbols = {}
+      cur_settings.updates.actions = {}
     end
   end
   local function redis_data_set_cb(err, data)