]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MAJOR: servers: propagate server status changes asynchronously.
authorEmeric Brun <ebrun@haproxy.com>
Tue, 3 Oct 2017 12:46:45 +0000 (14:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 13 Oct 2017 10:00:27 +0000 (12:00 +0200)
commit64cc49cf7e0db452e1467b2ac4cbf71c674dbc5a
treea373fcf4f162bf096b48b34797c83aef0dad0f92
parentd716f9bacfa6c363c5eb52e98b536c140a671392
MAJOR: servers: propagate server status changes asynchronously.

In order to prepare multi-thread development, code was re-worked
to propagate changes asynchronoulsy.

Servers with pending status changes are registered in a list
and this one is processed and emptied only once 'run poll' loop.

Operational status changes are performed before administrative
status changes.

In a case of multiple operational status change or admin status
change in the same 'run poll' loop iteration, those changes are
merged to reach only the targeted status.
include/proto/server.h
include/types/server.h
src/haproxy.c
src/server.c