summaryrefslogtreecommitdiffstats
path: root/model
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 /model
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 'model')
-rw-r--r--model/config.go19
1 files changed, 12 insertions, 7 deletions
diff --git a/model/config.go b/model/config.go
index d9910addb..7c87c05f0 100644
--- a/model/config.go
+++ b/model/config.go
@@ -184,13 +184,14 @@ type SSOSettings struct {
}
type SqlSettings struct {
- DriverName string
- DataSource string
- DataSourceReplicas []string
- MaxIdleConns int
- MaxOpenConns int
- Trace bool
- AtRestEncryptKey string
+ DriverName string
+ DataSource string
+ DataSourceReplicas []string
+ DataSourceSearchReplicas []string
+ MaxIdleConns int
+ MaxOpenConns int
+ Trace bool
+ AtRestEncryptKey string
}
type LogSettings struct {
@@ -1446,6 +1447,10 @@ func (o *Config) Sanitize() {
for i := range o.SqlSettings.DataSourceReplicas {
o.SqlSettings.DataSourceReplicas[i] = FAKE_SETTING
}
+
+ for i := range o.SqlSettings.DataSourceSearchReplicas {
+ o.SqlSettings.DataSourceSearchReplicas[i] = FAKE_SETTING
+ }
}
func (o *Config) defaultWebrtcSettings() {