]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: checks: put the functions in the appropriate files !
authorWilly Tarreau <w@1wt.eu>
Fri, 16 May 2014 09:48:10 +0000 (11:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 May 2014 09:27:00 +0000 (11:27 +0200)
commit4aac7db940878ad1ca5d8e5366ad80c01fab60e0
treeb58fb25839786f6d116dbb9fe8e22837abbd2dd7
parent892337c8e13359bb5c987f7d6295d5d4e0066bcf
REORG: checks: put the functions in the appropriate files !

Checks.c has become a total mess. A number of proxy or server maintenance
and queue management functions were put there probably because they were
used there, but that makes the code untouchable. And that's without saying
that their names does not always relate to what they really do!

So let's do a first pass by moving these ones :
  - set_backend_down()       => backend.c
  - redistribute_pending()   => queue.c:pendconn_redistribute()
  - check_for_pending()      => queue.c:pendconn_grab_from_px()
  - shutdown_sessions        => server.c:srv_shutdown_sessions()
  - shutdown_backup_sessions => server.c:srv_shutdown_backup_sessions()

All of them were moved at once.
include/proto/backend.h
include/proto/queue.h
include/proto/server.h
src/backend.c
src/checks.c
src/queue.c
src/server.c