/dports/www/mattermost-server/mattermost-server-6.0.2/config/ |
H A D | diff_test.go | 66 actualCfg.SqlSettings.DataSourceReplicas = []string{ 246 cfg.SqlSettings.DataSourceReplicas = []string{ 255 BaseVal: defaultConfigGen().SqlSettings.DataSourceReplicas, 268 cfg.SqlSettings.DataSourceReplicas = []string{ 276 cfg.SqlSettings.DataSourceReplicas = []string{ 299 cfg.SqlSettings.DataSourceReplicas = []string{ 307 cfg.SqlSettings.DataSourceReplicas = nil
|
H A D | utils_test.go | 34 actual.SqlSettings.DataSourceReplicas = append(actual.SqlSettings.DataSourceReplicas, "replica0") 35 actual.SqlSettings.DataSourceReplicas = append(actual.SqlSettings.DataSourceReplicas, "replica1") 56 target.SqlSettings.DataSourceReplicas = []string{model.FakeSetting, model.FakeSetting} 77 assert.Equal(t, actual.SqlSettings.DataSourceReplicas, target.SqlSettings.DataSourceReplicas)
|
H A D | utils.go | 68 if len(target.SqlSettings.DataSourceReplicas) == len(actual.SqlSettings.DataSourceReplicas) { 69 for i, value := range target.SqlSettings.DataSourceReplicas { 71 target.SqlSettings.DataSourceReplicas[i] = actual.SqlSettings.DataSourceReplicas[i]
|
H A D | environment_test.go | 96 in.SqlSettings.DataSourceReplicas = []string{"somthing"} 102 in.SqlSettings.DataSourceReplicas = []string{"otherthing", "alsothis"}
|
H A D | database_test.go | 368 assert.Equal(t, []string{}, ds.Get().SqlSettings.DataSourceReplicas) 378 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, ds.Get().SqlSettings.DataSourceReplicas) 393 assert.Equal(t, []string{}, ds.Get().SqlSettings.DataSourceReplicas) 403 …ser:pwd@db2:5433/test-db2", "user:pwd@db3:5434/test-db3"}, ds.Get().SqlSettings.DataSourceReplicas) 785 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, ds.Get().SqlSettings.DataSourceReplicas) 790 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, ds.Get().SqlSettings.DataSourceReplicas) 794 assert.Equal(t, []string{}, actualConfig.SqlSettings.DataSourceReplicas) 799 …modifiedMinimalConfig.SqlSettings.DataSourceReplicas = []string{"user:pwd@db:5432/test-db", "user:… 810 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, ds.Get().SqlSettings.DataSourceReplicas) 815 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, ds.Get().SqlSettings.DataSourceReplicas) [all …]
|
H A D | file_test.go | 424 assert.Equal(t, []string{}, fs.Get().SqlSettings.DataSourceReplicas) 436 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, fs.Get().SqlSettings.DataSourceReplicas) 450 assert.Equal(t, []string{}, fs.Get().SqlSettings.DataSourceReplicas) 462 …ser:pwd@db2:5433/test-db2", "user:pwd@db3:5434/test-db3"}, fs.Get().SqlSettings.DataSourceReplicas) 774 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, fs.Get().SqlSettings.DataSourceReplicas) 779 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, fs.Get().SqlSettings.DataSourceReplicas) 783 assert.Equal(t, []string{}, actualConfig.SqlSettings.DataSourceReplicas) 788 …modifiedMinimalConfig.SqlSettings.DataSourceReplicas = []string{"user:pwd@db:5432/test-db", "user:… 801 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, fs.Get().SqlSettings.DataSourceReplicas) 806 assert.Equal(t, []string{"user:pwd@db:5432/test-db"}, fs.Get().SqlSettings.DataSourceReplicas) [all …]
|
H A D | migrate_test.go | 67 cfg.SqlSettings.DataSourceReplicas = []string{
|
/dports/www/mattermost-server/mattermost-server-6.0.2/store/storetest/ |
H A D | settings.go | 64 …mySQLSettings.DataSourceReplicas = []string{getEnv("TEST_DATABASE_MYSQL_REPLICA_DSN", defaultMysql… 139 DataSourceReplicas: []string{}, 203 for _, dataSource := range settings.DataSourceReplicas { 206 settings.DataSourceReplicas = newDSRs
|
/dports/www/mattermost-server/mattermost-server-6.0.2/testlib/ |
H A D | helper.go | 100 h.replicas = h.Settings.DataSourceReplicas 117 h.Settings.DataSourceReplicas = []string{} 127 h.Settings.DataSourceReplicas = h.replicas
|
/dports/www/mattermost-server/mattermost-server-6.0.2/store/sqlstore/ |
H A D | store_test.go | 264 settings.DataSourceReplicas = dataSourceReplicas 334 settings.DataSourceReplicas = dataSourceReplicas 581 settings.DataSourceReplicas = dataSourceReplicas
|
H A D | store.go | 342 if len(ss.settings.DataSourceReplicas) > 0 { 343 ss.Replicas = make([]*gorp.DbMap, len(ss.settings.DataSourceReplicas)) 344 for i, replica := range ss.settings.DataSourceReplicas { 427 if len(ss.settings.DataSourceReplicas) == 0 || ss.lockedToMaster || license == nil { 478 if len(ss.settings.DataSourceReplicas) == 0 {
|
/dports/www/mattermost-server/mattermost-server-6.0.2/app/ |
H A D | server_test.go | 82 cfg.SqlSettings.DataSourceReplicas = []string{*cfg.SqlSettings.DataSource} 95 require.Len(t, s.Config().SqlSettings.DataSourceReplicas, 1) 108 require.Len(t, s.Config().SqlSettings.DataSourceReplicas, 1)
|
H A D | plugin_api_test.go | 1345 for i := range config.SqlSettings.DataSourceReplicas { 1346 assert.Equal(t, config.SqlSettings.DataSourceReplicas[i], model.FakeSetting) 1382 for i := range config.SqlSettings.DataSourceReplicas { 1383 assert.NotEqual(t, config.SqlSettings.DataSourceReplicas[i], model.FakeSetting)
|
/dports/net-im/matterircd/matterircd-0.25.0/vendor/github.com/mattermost/mattermost-server/v6/model/ |
H A D | config.go | 1073 …DataSourceReplicas []string `access:"environment_database,write_restrictable… member 1095 if s.DataSourceReplicas == nil { 1096 s.DataSourceReplicas = []string{} 3770 for i := range o.SqlSettings.DataSourceReplicas { 3771 o.SqlSettings.DataSourceReplicas[i] = FakeSetting
|
/dports/net-im/matterbridge/matterbridge-1.22.3/vendor/github.com/mattermost/mattermost-server/v5/model/ |
H A D | config.go | 1055 DataSourceReplicas []string `access:"environment,write_restrictable,cloud_restrictable"` member 1075 if s.DataSourceReplicas == nil { 1076 s.DataSourceReplicas = []string{} 3649 for i := range o.SqlSettings.DataSourceReplicas { 3650 o.SqlSettings.DataSourceReplicas[i] = FAKE_SETTING
|
/dports/www/mattermost-server/mattermost-server-6.0.2/model/ |
H A D | config.go | 1073 …DataSourceReplicas []string `access:"environment_database,write_restrictable… member 1095 if s.DataSourceReplicas == nil { 1096 s.DataSourceReplicas = []string{} 3770 for i := range o.SqlSettings.DataSourceReplicas { 3771 o.SqlSettings.DataSourceReplicas[i] = FakeSetting
|
H A D | config_test.go | 1291 c.SqlSettings.DataSourceReplicas = []string{"stuff"} 1305 assert.Equal(t, FakeSetting, c.SqlSettings.DataSourceReplicas[0])
|
/dports/www/mattermost-server/mattermost-server-6.0.2/api4/ |
H A D | config_test.go | 53 …ins(strings.Join(cfg.SqlSettings.DataSourceReplicas, " "), model.FakeSetting) && len(cfg.SqlSettin…
|
/dports/net-im/matterircd/matterircd-0.25.0/vendor/github.com/mattermost/mattermost-server/v5/model/ |
H A D | config.go | 1128 …DataSourceReplicas []string `access:"environment_database,write_restrictable… member 1150 if s.DataSourceReplicas == nil { 1151 s.DataSourceReplicas = []string{} 3904 for i := range o.SqlSettings.DataSourceReplicas { 3905 o.SqlSettings.DataSourceReplicas[i] = FAKE_SETTING
|
/dports/www/mattermost-server/mattermost-server-6.0.2/services/telemetry/ |
H A D | telemetry.go | 477 "data_source_replicas": len(cfg.SqlSettings.DataSourceReplicas),
|