From f94e220c88e2c233536f48ce42a2dfba8c3403b8 Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Tue, 3 Jan 2017 11:43:38 -0500 Subject: PLT-4478 Do not stop server when only 1 read replia is supported. (#4940) --- cmd/platform/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') 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() -- cgit v1.2.3-1-g7c22