]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: receiver: reserve special values for "shards"
authorWilly Tarreau <w@1wt.eu>
Thu, 13 Apr 2023 15:11:23 +0000 (17:11 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Apr 2023 15:12:50 +0000 (17:12 +0200)
commitd30e82b9f0ad07bf1ce0f2dc100937a518d53877
tree6f9ebc6de154e9d6888bbb25759904cf002e3ce0
parent53fc98c3bcf058e358a4a9b3ad3b35ce883085fb
MINOR: receiver: reserve special values for "shards"

Instead of artificially setting the shards count to MAX_THREAD when
"by-thread" is used, let's reserve special values for symbolic names
so that we can add more in the future. For now we use value -1 for
"by-thread", which requires to turn the type to signed int but it was
already used as such everywhere anyway.
include/haproxy/receiver-t.h
src/cfgparse.c
src/listener.c