]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: ring: don't even try to update offset when failed to read
authorWilly Tarreau <w@1wt.eu>
Thu, 29 Feb 2024 10:57:28 +0000 (11:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 25 Mar 2024 17:34:19 +0000 (17:34 +0000)
commit1f8b14b7be51efcfe3c57fe9aecdc88c7acf3f5c
tree45f0f4443bfbf10561f25ea123df143dd7abed94
parent9e99cfbeb66f4a8c470780aad19a677652d5c04b
OPTIM: ring: don't even try to update offset when failed to read

If there's nothing to read, it's pointless for a reader to try to update
the offset pointer, that's two atomic ops to replace a value by itself
twice. Let's just stop this.
src/ring.c