]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: ring: do not realign ring contents on resize
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Feb 2023 14:36:03 +0000 (15:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 Feb 2023 08:26:30 +0000 (09:26 +0100)
commitd0d85d2e364b1a8dffd605de18469c9f300aae32
tree55a73f9af855851a2a529dbce9b5bb40564a859b
parentb7a13be6cd20b3840ae516fc423bae27576314da
BUG/MINOR: ring: do not realign ring contents on resize

If a ring is resized, we must not zero its head since the contents
are preserved in-situ. Till now it used to work because we only resize
during boot and we emit very few data (if at all) during boot. But this
can change in the future.

This can be backported to 2.2 though no older version should notice a
difference.
src/ring.c