mirror of
https://github.com/minio/minio.git
synced 2025-11-21 02:09:08 -05:00
Ensure safety of transitionState at startup (#16563)
This commit is contained in:
committed by
GitHub
parent
d8daabae9b
commit
990fc415f7
@@ -323,6 +323,7 @@ func initAllSubsystems(ctx context.Context) {
|
||||
// Create new ILM tier configuration subsystem
|
||||
globalTierConfigMgr = NewTierConfigMgr()
|
||||
|
||||
globalTransitionState = newTransitionState(GlobalContext)
|
||||
globalSiteResyncMetrics = newSiteResyncMetrics(GlobalContext)
|
||||
}
|
||||
|
||||
@@ -674,8 +675,7 @@ func serverMain(ctx *cli.Context) {
|
||||
// Initialize background replication
|
||||
initBackgroundReplication(GlobalContext, newObject)
|
||||
|
||||
// Initialize background transition
|
||||
initBackgroundTransition(GlobalContext, newObject)
|
||||
globalTransitionState.Init(newObject)
|
||||
|
||||
// Initialize batch job pool.
|
||||
globalBatchJobPool = newBatchJobPool(GlobalContext, newObject, 100)
|
||||
|
||||
Reference in New Issue
Block a user