]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ring: clarify the usage of ring_size() and add ring_allocated_size()
authorWilly Tarreau <w@1wt.eu>
Mon, 15 Apr 2024 06:25:03 +0000 (08:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 15 Apr 2024 06:25:03 +0000 (08:25 +0200)
commitb662c5d2b887dc6e97d50e9706d17bc6ece75105
tree8f66e51d991f0c6d148fbd732063063bc326307b
parentb5dd8b466e9afe0cfa712efddf83a3e239b59eee
MINOR: ring: clarify the usage of ring_size() and add ring_allocated_size()

There's currently an abiguity around ring_size(), it's said to return
the allocated size but returns the usable size. We can't change it as
it's used everywhere in the code like this. Let's fix the comment and
add ring_allocated_size() instead for anything related to allocation.
include/haproxy/ring.h
src/ring.c