]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: fd: remove leftovers of the fdcache
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2019 12:33:11 +0000 (14:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Aug 2019 13:07:25 +0000 (15:07 +0200)
commit76913d3ef4424bc8c372d040d71fb8cf53d6f0c4
tree883f7208d1f33c16ea25f55a851e5bd8bbee1d00
parent30362908d8177bd821526d57fda97a36a90283ae
CLEANUP: fd: remove leftovers of the fdcache

The "cache" entry was still present in the fdtab struct and it was
reported in "show sess". Removing it broke the cache-line alignment
on 64-bit machines which is important for threads, so it was fixed
by adding an attribute(aligned()) when threads are in use. Doing it
only in this case allows 32-bit thread-less platforms to see the
struct fit into 32 bytes.
include/types/fd.h
src/fd.c
src/stream.c