]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ring: add a ring_write() function
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Aug 2019 09:44:13 +0000 (11:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 27 Aug 2019 15:14:19 +0000 (17:14 +0200)
commitbe97853c2f9f5d93a0724941034cefcdbf77ebac
tree507555ac1cbe5a0bdaae365f2bc16d129de6ad53
parent172945fbada0d1df21fbf9f65162a23c766cb83e
MINOR: ring: add a ring_write() function

This function tries to write to the ring buffer, possibly removing enough
old messages to make room for the new one. It takes two arrays of fragments
on input to ease the insertion of prefixes by the caller. It atomically
writes the message, possibly truncating it if desired, and returns the
operation's status.
include/proto/ring.h
src/ring.c