mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05: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…
Reference in New Issue
Block a user