]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: session: use an array for the stick counters
authorWilly Tarreau <w@1wt.eu>
Sun, 9 Dec 2012 14:55:40 +0000 (15:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 Dec 2012 14:57:16 +0000 (15:57 +0100)
commit20d46a5a95db0bd5d0a74024fede7e617ee20d0a
tree3ba9890bec977a64c24335abf52a3f43195cd397
parent4a55060aa631a4296adba15a4a4ababee5856ef1
CLEANUP: session: use an array for the stick counters

The stick counters were in two distinct sets of struct members,
causing some code to be duplicated. Now we use an array, which
enables some processing to be performed in loops. This allowed
the code to be shrunk by 700 bytes.
include/proto/session.h
include/types/session.h
src/peers.c
src/proto_tcp.c
src/session.c