diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-01 11:59:50 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-11-01 11:59:50 +0000 |
commit | 31e9ec3a264940b74d05e1dd29758264039d224b (patch) | |
tree | 2ed663c2a87eb8365233e228554eb96c1461a845 /src/plugins/lua/dynamic_conf.lua | |
parent | e89f3fd096ade8710150adb6f71794d43187fc93 (diff) | |
download | rspamd-31e9ec3a264940b74d05e1dd29758264039d224b.tar.gz rspamd-31e9ec3a264940b74d05e1dd29758264039d224b.zip |
[Minor] Do not save config changes indefinitely
Diffstat (limited to 'src/plugins/lua/dynamic_conf.lua')
-rw-r--r-- | src/plugins/lua/dynamic_conf.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/lua/dynamic_conf.lua b/src/plugins/lua/dynamic_conf.lua index 254b93f1f..4f984cbe1 100644 --- a/src/plugins/lua/dynamic_conf.lua +++ b/src/plugins/lua/dynamic_conf.lua @@ -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) |