upstreams_write = upstream_list.create(options['write_servers'],
default_port)
end
- else
+ elseif not options['read_servers'] then
upstreams_write = upstreams_read
end
end
result['password'] = options['password']
end
- if upstreams_write and upstreams_read then
+ if upstreams_read then
result.read_servers = upstreams_read
- result.write_servers = upstreams_write
-
+ if upstreams_write then
+ result.write_servers = upstreams_write
+ end
return true
end
end
end
end
+ if redis_params['read_servers'] ~= redis_params['write_servers'] then return end
table.insert(settings.classifiers, {
symbol_spam = symbol_spam,