mirror of
https://github.com/minio/minio.git
synced 2025-01-12 15:33:22 -05:00
fix: increment counter when entry be skipped (#17237)
This commit is contained in:
parent
e94e6adf91
commit
41fa8fa2d2
@ -380,6 +380,8 @@ func (h *Target) Send(ctx context.Context, entry interface{}) error {
|
||||
default:
|
||||
// Drop messages until we are online.
|
||||
if !h.IsOnline(ctx) {
|
||||
atomic.AddInt64(&h.totalMessages, 1)
|
||||
atomic.AddInt64(&h.failedMessages, 1)
|
||||
return errors.New("log buffer full and remote offline")
|
||||
}
|
||||
nWorkers := atomic.LoadInt64(&h.workers)
|
||||
|
Loading…
Reference in New Issue
Block a user