MM-53879: Fix duplicate loading of license (#25442)
We take a second stab at fixing the issue. Last time, we were a bit too aggressive in trying to fix a lot of stuff. I believe changing the cluster event handler had an edge case somewhere which caused things to fail. Taking a very conservative approach this time to only fix what is obviously wrong. Also tested locally in a HA setup. https://mattermost.atlassian.net/browse/MM-53879 ```release-note NONE ``` Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
8364e30a2a
Коммит
1f431bf722
@@ -227,11 +227,6 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
return nil, errors.Wrapf(err, "unable to create users service")
|
||||
}
|
||||
|
||||
if model.BuildEnterpriseReady == "true" {
|
||||
// Dependent on user service
|
||||
s.LoadLicense()
|
||||
}
|
||||
|
||||
s.licenseWrapper = &licenseWrapper{
|
||||
srv: s,
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user