mirror of
https://github.com/minio/minio.git
synced 2024-12-25 14:45:54 -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) {
|
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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user