summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-05-01 05:19:58 +0100
committerChristopher Speller <crspeller@gmail.com>2017-05-01 00:19:58 -0400
commit597641545d1be04a1ba6c0b2d35c75fc2cfc8737 (patch)
tree4a5789acdeaf3924bd279672f8308572b91a9062 /utils
parent5ab7726c1ec72678e505b87335eb011f97a09b3c (diff)
downloadchat-597641545d1be04a1ba6c0b2d35c75fc2cfc8737.tar.gz
chat-597641545d1be04a1ba6c0b2d35c75fc2cfc8737.tar.bz2
chat-597641545d1be04a1ba6c0b2d35c75fc2cfc8737.zip
PLT-6355: Use separate Read Replicas for Search. (#6216)
Diffstat (limited to 'utils')
-rw-r--r--utils/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/utils/config.go b/utils/config.go
index 802dfc2e9..ea28cc912 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -562,4 +562,8 @@ func Desanitize(cfg *model.Config) {
for i := range cfg.SqlSettings.DataSourceReplicas {
cfg.SqlSettings.DataSourceReplicas[i] = Cfg.SqlSettings.DataSourceReplicas[i]
}
+
+ for i := range cfg.SqlSettings.DataSourceSearchReplicas {
+ cfg.SqlSettings.DataSourceSearchReplicas[i] = Cfg.SqlSettings.DataSourceSearchReplicas[i]
+ }
}