Merge pull request #4092 from yousong/bugfix/yousong-lb-janitor

loadbalancerbackends: janitor: move to InitializeData
This commit is contained in:
yunion-ci-robot
2019-12-11 20:12:41 +08:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
@@ -539,6 +539,7 @@ func (manager *SLoadbalancerBackendManager) InitializeData() error {
}
}
}
manager.initializeJanitor()
return nil
}
@@ -106,7 +106,7 @@ func (j *lbbJanitor) Stop() {
var theLbbJanitor = newLbbJanitor()
func init() {
func (man *SLoadbalancerBackendManager) initializeJanitor() {
go theLbbJanitor.Start(context.Background())
eh := atexit.ExitHandler{
Prio: atexit.PRIO_LOG_OTHER,