mirror of
https://github.com/minio/minio.git
synced 2025-02-03 01:46:00 -05:00
fix: add correct worker count before startHTTPLogger() (#17091)
This commit is contained in:
parent
c8b92f6067
commit
b28d391a22
@ -204,6 +204,7 @@ func (h *Target) Init() (err error) {
|
||||
h.workerStartMu.Lock()
|
||||
h.lastStarted = time.Now()
|
||||
h.workerStartMu.Unlock()
|
||||
atomic.AddInt64(&h.workers, 1)
|
||||
go h.startHTTPLogger()
|
||||
}
|
||||
return nil
|
||||
|
Loading…
x
Reference in New Issue
Block a user