From: Vsevolod Stakhov Date: Sun, 5 Feb 2023 12:29:37 +0000 (+0000) Subject: [Fix] Fix usage of the Redis config schema as `extra_fields` X-Git-Tag: 3.5~66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=838f95817002d036462f469d40513ce9ae837536;p=thirdparty%2Frspamd.git [Fix] Fix usage of the Redis config schema as `extra_fields` Issue: #4318 --- diff --git a/lualib/lua_redis.lua b/lualib/lua_redis.lua index acbb469691..d41805eca8 100644 --- a/lualib/lua_redis.lua +++ b/lualib/lua_redis.lua @@ -39,6 +39,13 @@ local common_schema = ts.shape { } local config_schema = + -- Allow separate read/write servers to allow usage in the `extra_fields` + ts.shape({ + read_servers = ts.string + ts.array_of(ts.string), + }, {extra_fields = common_schema}) + + ts.shape({ + write_servers = ts.string + ts.array_of(ts.string), + }, {extra_fields = common_schema}) + ts.shape({ read_servers = ts.string + ts.array_of(ts.string), write_servers = ts.string + ts.array_of(ts.string),