]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] session: remove s->prev_srv which is not needed anymore
authorWilly Tarreau <w@1wt.eu>
Thu, 10 Mar 2011 10:42:13 +0000 (11:42 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 10 Mar 2011 22:32:16 +0000 (23:32 +0100)
commit3d80d911aa468d5d1be66692002e2b1b18f8fbe8
tree9d223637cd62c0076b0acdac96f750465281c863
parent664beb8610e4cc1dfc389789e0310b0c4fc88f72
[MEDIUM] session: remove s->prev_srv which is not needed anymore

s->prev_srv is used by assign_server() only, but all code paths leading
to it now take s->prev_srv from the existing s->srv. So assign_server()
can do that copy into its own stack.

If at one point a different srv is needed, we still have a copy of the
last server on which we failed a connection attempt in s->target.
include/types/session.h
src/backend.c
src/peers.c
src/proto_http.c
src/session.c