From 597641545d1be04a1ba6c0b2d35c75fc2cfc8737 Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Mon, 1 May 2017 05:19:58 +0100 Subject: PLT-6355: Use separate Read Replicas for Search. (#6216) --- model/config.go | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) (limited to 'model/config.go') 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() { -- cgit v1.2.3-1-g7c22