mirror of
https://github.com/minio/minio.git
synced 2025-04-20 10:37:31 -04: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:
|
default:
|
||||||
// Drop messages until we are online.
|
// Drop messages until we are online.
|
||||||
if !h.IsOnline(ctx) {
|
if !h.IsOnline(ctx) {
|
||||||
|
atomic.AddInt64(&h.totalMessages, 1)
|
||||||
|
atomic.AddInt64(&h.failedMessages, 1)
|
||||||
return errors.New("log buffer full and remote offline")
|
return errors.New("log buffer full and remote offline")
|
||||||
}
|
}
|
||||||
nWorkers := atomic.LoadInt64(&h.workers)
|
nWorkers := atomic.LoadInt64(&h.workers)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user