]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DEV: haring: add a new option "-r" to automatically repair broken files
authorWilly Tarreau <w@1wt.eu>
Tue, 24 Jan 2023 11:13:14 +0000 (12:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Jan 2023 11:13:14 +0000 (12:13 +0100)
commite06ba9031843b6a55df486f5115b6675d71e22f7
tree8708d1e404d0e43f2c100b310ac98902e4e45199
parentfb9a4765b74cc18f25a6b732a66aae952262a7e0
DEV: haring: add a new option "-r" to automatically repair broken files

In case a file-backed ring was not properly synced before being dumped,
the output can look bogus due to the head pointer not being perfectly
up to date. In this case, passing "-r" will make haring automatically
skip entries not starting with a zero, and resynchronize with the rest
of the messages.

This should be backported to 2.6.
dev/haring/haring.c