]> git.ipfire.org Git - thirdparty/haproxy.git/commit
Revert "MINOR: chunks: Make sure trash_size is only set once."
authorWilly Tarreau <w@1wt.eu>
Fri, 7 Jun 2019 13:33:06 +0000 (15:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 7 Jun 2019 13:37:47 +0000 (15:37 +0200)
commite18616168f76274861c1f0cb52ddb916043ac18d
tree100d16263a4c2262bc0f699dc76dabf52947eddc
parent1c3b83242da96f1d94ef3df34c399c1b984668b6
Revert "MINOR: chunks: Make sure trash_size is only set once."

This reverts commit 1c3b83242da96f1d94ef3df34c399c1b984668b6.

It was made only to silence the thread sanitizer but ends up creating a
bug. Indeed, if "tune.bufsize" is in the global section, the trash_size
value is not updated anymore and the trash becomes smaller than a buffer!

Let's stop trying to fix the thread sanitizer reports, they are invalid,
and trying to fix them actually introduces bugs where there were none.

See GH issue #117 for more context. No backport is needed.
src/chunk.c