mirror of
https://github.com/minio/minio.git
synced 2026-11-20 07:04:22 +00:00
fix: add correct worker count before startHTTPLogger() (#17091)
This commit is contained in:
1 parent
c8b92f6067
commit
b28d391a22
1 file changed
+1
@@ -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