mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
fix: add correct worker count before startHTTPLogger() (#17091)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user