BUG/MINOR: server: remove srv from px list on CLI 'add server' error

If an error occured during the CLI 'add server' handler, the newly
created server must be removed from the proxy list if already inserted.
Currently, this can happen on the extremely rare error during server id
generation if there is no id left.

The removal operation is not thread-safe, it must be conducted before
releasing the thread isolation.

This can be backported up to 2.4. Please note that dynamic server track
is not implemented in 2.4, so the release_server_track invocation must
be removed for the backport to prevent a compilation error.

(cherry picked from commit bd8dd841e5383ecec1661d94bddb0fa2ef515842)
[wt: removed release_server_track as indicated]
Signed-off-by: Willy Tarreau <w@1wt.eu>
1 file changed