]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: task: extend the state field to 32 bits
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Mar 2021 15:09:26 +0000 (16:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2021 07:30:08 +0000 (08:30 +0100)
commit144f84a09d48e758396ba17f1ddef41b63f30a72
treed2203fb959f8b00f8614605059b0d56f713596a0
parente0d5942ddd7e528055940e84e856141d28bb25cb
MEDIUM: task: extend the state field to 32 bits

It's been too short for quite a while now and is now full. It's still
time to extend it to 32-bits since we have room for this without
wasting any space, so we now gained 16 new bits for future flags.

The values were not reassigned just in case there would be a few
hidden u16 or short somewhere in which these flags are placed (as
it used to be the case with stream->pending_events).

The patch is tagged MEDIUM because this required to update the task's
process() prototype to use an int instead of a short, that's quite a
bunch of places.
40 files changed:
include/haproxy/applet.h
include/haproxy/check.h
include/haproxy/connection.h
include/haproxy/extcheck.h
include/haproxy/hlua.h
include/haproxy/listener.h
include/haproxy/proxy.h
include/haproxy/server.h
include/haproxy/session.h
include/haproxy/stream-t.h
include/haproxy/stream.h
include/haproxy/stream_interface.h
include/haproxy/task-t.h
include/haproxy/task.h
src/applet.c
src/check.c
src/debug.c
src/dns.c
src/extcheck.c
src/flt_spoe.c
src/hlua.c
src/listener.c
src/mailers.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/mux_pt.c
src/peers.c
src/proxy.c
src/resolvers.c
src/server.c
src/session.c
src/sink.c
src/ssl_sock.c
src/stick_table.c
src/stream.c
src/stream_interface.c
src/task.c
src/xprt_handshake.c
src/xprt_quic.c