diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-08 10:04:19 -0500 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2016-03-08 10:04:19 -0500 |
commit | 93dc7681562a0848294875e2c7c615b3a0ba0fb4 (patch) | |
tree | d083d57fa5b2986f3e4b3f0261971b341735afec | |
parent | 49fa15c592a859aefbcad502244c4d10071ad519 (diff) | |
parent | 7695e0ea4b73905e9634c94efcf28dd40709e178 (diff) | |
download | chat-93dc7681562a0848294875e2c7c615b3a0ba0fb4.tar.gz chat-93dc7681562a0848294875e2c7c615b3a0ba0fb4.tar.bz2 chat-93dc7681562a0848294875e2c7c615b3a0ba0fb4.zip |
Merge pull request #2375 from mattermost/PLT-2117
PLT-2117 chaning multiple rrs
-rw-r--r-- | i18n/en.json | 4 | ||||
-rw-r--r-- | mattermost.go | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/i18n/en.json b/i18n/en.json index 0f8b5de7c..5b261a770 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -2428,6 +2428,10 @@ "translation": "Attempting to upgrade the database schema version to %v" }, { + "id": "store.sql.read_replicas_not_licensed.critical", + "translation": "More than 1 read replica functionality disabled by current license. Please contact your system administrator about upgrading your enterprise license." + }, + { "id": "store.sql.schema_version.critical", "translation": "The database schema version of %v cannot be upgraded. You must not skip a version." }, diff --git a/mattermost.go b/mattermost.go index b305aac3c..45ffcc88f 100644 --- a/mattermost.go +++ b/mattermost.go @@ -72,6 +72,12 @@ func main() { loadLicense() } + if !utils.IsLicensed && len(utils.Cfg.SqlSettings.DataSourceReplicas) > 1 { + l4g.Critical(utils.T("store.sql.read_replicas_not_licensed.critical")) + time.Sleep(time.Second) + panic(fmt.Sprintf(utils.T("store.sql.read_replicas_not_licensed.critical"))) + } + if flagRunCmds { runCmds() } else { |