mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
tiering: UpdateWorkers may be called before Init (#16573)
This commit is contained in:
committed by
GitHub
parent
fadc46b906
commit
9de26531e4
@@ -270,7 +270,9 @@ func (t *transitionState) getDailyAllTierStats() DailyAllTierStats {
|
|||||||
func (t *transitionState) UpdateWorkers(n int) {
|
func (t *transitionState) UpdateWorkers(n int) {
|
||||||
t.mu.Lock()
|
t.mu.Lock()
|
||||||
defer t.mu.Unlock()
|
defer t.mu.Unlock()
|
||||||
|
if t.objAPI == nil { // Init hasn't been called yet.
|
||||||
|
return
|
||||||
|
}
|
||||||
t.updateWorkers(n)
|
t.updateWorkers(n)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user