]> git.kaiwu.me - haproxy.git/commit
MINOR: proxy: prevent backend deletion if server still exists in it
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 12 Jan 2026 14:26:45 +0000 (15:26 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 2 Mar 2026 13:08:30 +0000 (14:08 +0100)
commit053887cc98f180ea2c1456536a3888e3a612da69
treedde96803e568653464f0fbc837d0581b181100b0
parent7f725f0754ca4c9b01928af80c2ee67d896fb9b2
MINOR: proxy: prevent backend deletion if server still exists in it

Ensure a backend instance cannot be removed if there is still server in
it. This is checked via be_check_for_deletion() to ensure "del backend"
cannot be executed. The only solution is to use "del server" to remove
on the servers instances.

This check only covers servers not yet targetted via "del server". For
deleted servers not yet purged (due to their refcount), the proxy
refcount is incremented but this does not block "del backend"
invokation.
doc/management.txt
src/proxy.c