PLT-4478 Do not stop server when only 1 read replia is supported. (#4940)
Этот коммит содержится в:
@@ -72,8 +72,8 @@ func runServer(configFileLocation string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !utils.IsLicensed && len(utils.Cfg.SqlSettings.DataSourceReplicas) > 1 {
|
if !utils.IsLicensed && len(utils.Cfg.SqlSettings.DataSourceReplicas) > 1 {
|
||||||
l4g.Critical(utils.T("store.sql.read_replicas_not_licensed.critical"))
|
l4g.Warn(utils.T("store.sql.read_replicas_not_licensed.critical"))
|
||||||
return
|
utils.Cfg.SqlSettings.DataSourceReplicas = utils.Cfg.SqlSettings.DataSourceReplicas[:1]
|
||||||
}
|
}
|
||||||
|
|
||||||
resetStatuses()
|
resetStatuses()
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user