mirror of
https://github.com/minio/minio.git
synced 2025-04-03 11:20:30 -04:00
Removing the audit log retry mechanism (#20259)
This commit is contained in:
parent
3ffeabdfcb
commit
743ddb196a
@ -562,7 +562,6 @@ func (h *Target) Send(ctx context.Context, entry interface{}) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
retry:
|
|
||||||
select {
|
select {
|
||||||
case h.logCh <- entry:
|
case h.logCh <- entry:
|
||||||
h.totalMessages.Add(1)
|
h.totalMessages.Add(1)
|
||||||
@ -573,12 +572,6 @@ retry:
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
default:
|
default:
|
||||||
nWorkers := h.workers.Load()
|
|
||||||
if nWorkers < h.maxWorkers {
|
|
||||||
// Just sleep to avoid any possible hot-loops.
|
|
||||||
time.Sleep(50 * time.Millisecond)
|
|
||||||
goto retry
|
|
||||||
}
|
|
||||||
h.totalMessages.Add(1)
|
h.totalMessages.Add(1)
|
||||||
h.failedMessages.Add(1)
|
h.failedMessages.Add(1)
|
||||||
return errors.New("log buffer full")
|
return errors.New("log buffer full")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user