diff options
author | Corey Hulen <corey@hulen.com> | 2017-01-03 11:43:38 -0500 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2017-01-03 13:43:38 -0300 |
commit | f94e220c88e2c233536f48ce42a2dfba8c3403b8 (patch) | |
tree | 81dc02bc53aed4696df02306e30a5ddbff63471d | |
parent | 4467ce65cbece19ca79497e9e48c3d75b3e6a0be (diff) | |
download | chat-f94e220c88e2c233536f48ce42a2dfba8c3403b8.tar.gz chat-f94e220c88e2c233536f48ce42a2dfba8c3403b8.tar.bz2 chat-f94e220c88e2c233536f48ce42a2dfba8c3403b8.zip |
PLT-4478 Do not stop server when only 1 read replia is supported. (#4940)
-rw-r--r-- | cmd/platform/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/platform/server.go b/cmd/platform/server.go index c5aae960a..b699c4129 100644 --- a/cmd/platform/server.go +++ b/cmd/platform/server.go @@ -72,8 +72,8 @@ func runServer(configFileLocation string) { } if !utils.IsLicensed && len(utils.Cfg.SqlSettings.DataSourceReplicas) > 1 { - l4g.Critical(utils.T("store.sql.read_replicas_not_licensed.critical")) - return + l4g.Warn(utils.T("store.sql.read_replicas_not_licensed.critical")) + utils.Cfg.SqlSettings.DataSourceReplicas = utils.Cfg.SqlSettings.DataSourceReplicas[:1] } resetStatuses() |