MM-28733 : Admin Advisor v2 (#15515)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
7c905b0890
Коммит
f74b86ae95
@@ -6060,6 +6060,26 @@ func (s *RetryLayerSystemStore) SaveOrUpdate(system *model.System) error {
|
||||
|
||||
}
|
||||
|
||||
func (s *RetryLayerSystemStore) SaveOrUpdateWithWarnMetricHandling(system *model.System) error {
|
||||
|
||||
tries := 0
|
||||
for {
|
||||
err := s.SystemStore.SaveOrUpdateWithWarnMetricHandling(system)
|
||||
if err == nil {
|
||||
return nil
|
||||
}
|
||||
if !isRepeatableError(err) {
|
||||
return err
|
||||
}
|
||||
tries++
|
||||
if tries >= 3 {
|
||||
err = errors.Wrap(err, "giving up after 3 consecutive repeatable transaction failures")
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (s *RetryLayerSystemStore) Update(system *model.System) error {
|
||||
|
||||
tries := 0
|
||||
@@ -7364,6 +7384,12 @@ func (s *RetryLayerUserStore) AnalyticsActiveCount(time int64, options model.Use
|
||||
|
||||
}
|
||||
|
||||
func (s *RetryLayerUserStore) AnalyticsGetExternalUsers(hostDomain string) (bool, *model.AppError) {
|
||||
|
||||
return s.UserStore.AnalyticsGetExternalUsers(hostDomain)
|
||||
|
||||
}
|
||||
|
||||
func (s *RetryLayerUserStore) AnalyticsGetGuestCount() (int64, *model.AppError) {
|
||||
|
||||
return s.UserStore.AnalyticsGetGuestCount()
|
||||
|
||||
Ссылка в новой задаче
Block a user