commit | be97853c2f9f5d93a0724941034cefcdbf77ebac | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Aug 27 11:44:13 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Aug 27 17:14:19 2019 +0200 |
tree | 507555ac1cbe5a0bdaae365f2bc16d129de6ad53 | |
parent | 172945fbada0d1df21fbf9f65162a23c766cb83e [diff] |
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.