]> git.kaiwu.me - haproxy.git/commit
MINOR: server: extract unregistering from "delete server" CLI parser
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 9 Sep 2026 14:36:46 +0000 (16:36 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 14 Oct 2026 09:15:39 +0000 (11:15 +0200)
commitaa8e3eefa6077218f4c8d5359e046a266d8d0627
treea345039cbec410fe78ef9a2175034c8b07746254
parentbcbdf95eee1892c48d92870e399595b25796288e
MINOR: server: extract unregistering from "delete server" CLI parser

Extract the code which performs the server deletion from the "del
server" CLI parser in a new function named srv_unregister(). Its purpose
is to ensure that a server is detached from any visible elements, most
notably the parent proxy list and name tree, and the global GUID tree.
This step is mandatory to remove a server at runtime but is skipped on
deinit.

This reorg allows to implement alternative method for server deletion at
runtime. This will be useful for the future "purge server" CLI command.
include/haproxy/server.h
src/server.c