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