MINOR: fd: move .initialized into fdtab[].state
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Apr 2021 15:57:12 +0000 (17:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 Apr 2021 16:09:08 +0000 (18:09 +0200)
commit0cc612818d05c2b4f884c03094cf2858e4389827
tree6e219aea910597da5096ce4535debe63738903e0
parent030dae13a01f8dc8e40427f3c156e8ad7b0cec47
MINOR: fd: move .initialized into fdtab[].state

No need to keep this flag apart any more, let's merge it into the global
state. The bit was not cleared in fd_insert() because the only user is
the function used to create and atomically send a log message to a pipe
FD, which never registers the fd. Here we clear it nevertheless for the
sake of clarity.

Note that with an extra cleaning pass we could have a bit number
here and simply use a BTS to test and set it.
include/haproxy/fd-t.h
src/fd.c