]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sink: now report the number of dropped events on output
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Aug 2019 14:41:06 +0000 (16:41 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Aug 2019 15:14:19 +0000 (17:14 +0200)
commit8f24023ba0b3a193f6adf7f66c426613a2b7d0fb
tree2fda1febc158b871838cbe6587f94271384babbe
parent9f830d7408cbfe2100a575e3cf2de5233a2ce80f
MINOR: sink: now report the number of dropped events on output

The principle is that when emitting a message, if some dropped events
were logged, we first attempt to report this counter before going
further. This is done under an exclusive lock while all logs are
produced under a shared lock. This ensures that the dropped line is
accurately reported and doesn't accidently arrive after a later
event.
include/proto/sink.h
include/types/sink.h
src/sink.c