summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-07-04 14:44:04 +0100
committerGitHub <noreply@github.com>2018-07-04 14:44:04 +0100
commit6e46d4c55e740cfbd34474dfa91c9af3e861e244 (patch)
treeaa415f5d8fe276d283b2200268e6d0accd0c9e13
parentcbee6992f0ac68785252e0699e1a728c64a1b692 (diff)
parent529f6147b59baa0421391e35ad2f0fba1a2dc46b (diff)
downloadrspamd-6e46d4c55e740cfbd34474dfa91c9af3e861e244.tar.gz
rspamd-6e46d4c55e740cfbd34474dfa91c9af3e861e244.zip
Merge pull request #2325 from BoresXP/master
Fix redis read_only was incorrectly set to true.
-rw-r--r--lualib/lua_redis.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua
index d22a4010c..33757b154 100644
--- a/lualib/lua_redis.lua
+++ b/lualib/lua_redis.lua
@@ -110,9 +110,9 @@ local function try_load_redis_servers(options, rspamd_config, result)
result['password'] = options['password']
end
- if read_only and not result.write_servers then
+ if read_only and not upstreams_write then
result.read_only = true
- elseif result.write_servers then
+ elseif upstreams_write then
result.read_only = false
end