]> git.kaiwu.me - haproxy.git/commit
MINOR: server: do not return next server on srv_drop()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 22 Jul 2026 08:14:35 +0000 (10:14 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 24 Jul 2026 07:32:58 +0000 (09:32 +0200)
commit257e2eefc95499099d9447b9c92fe3ea439c5e08
treee1c0f0ca381fd3cca53180f0e997145f8e359abc
parent4154c44632f1641b5823a1222c65246f2f62aaed
MINOR: server: do not return next server on srv_drop()

Previously, srv_drop() returned the next server entry in the parent
proxy. This was used as convenience during server iteration. However,
the code has evolved several times to better deal with the server
deletion risk. Currently, srv_drop() return value is only used in a
single place.

Thus, this patch simplifies srv_drop() by removing its return value. As
a side effect, this will also reduce the modification required to
convert the proxy server list to a doubly linked struct list.
include/haproxy/server.h
src/proxy.c
src/server.c