]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: Split up struct server's check element
authorSimon Horman <horms@verge.net.au>
Sat, 23 Feb 2013 01:16:43 +0000 (10:16 +0900)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Nov 2013 08:35:48 +0000 (09:35 +0100)
commit6618300e13587cac63c34b974cd54d52fc129fde
tree084d7932ee2c0a55f5bcd4aad3e7f7678b0b74c4
parentc69d547638f09d0bb99f14c74a1c8be485cf2c72
MEDIUM: Split up struct server's check element

This is in preparation for associating a agent check
with a server which runs as well as the server's existing check.

The split has been made by:
* Moving elements of struct server's check element that will
  be shared by both checks into a new check_common element
  of struct server.
* Moving the remaining elements to a new struct check and
  making struct server's check element a struct check.
* Adding a server element to struct check, a back-pointer
  to the server element it is a member of.
  - At this time the server could be obtained using
    container_of, however, this will not be so easy
    once a second struct check element is added to struct server
    to accommodate an agent health check.

Signed-off-by: Simon Horman <horms@verge.net.au>
include/types/server.h
src/cfgparse.c
src/checks.c
src/server.c
src/ssl_sock.c