mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-19 01:54:37 +00:00
MINOR: server: Remove cached line from global server-state tree when found
When a server for a given backend is found in the tree containing all lines of the global server-state file, the node is removed from the tree. It is useless to keep it longer. It is a small improvement, but it may also be usefull to track the orphan lines (not used for now).
This commit is contained in:
parent
ecfb9b9109
commit
f4d1da90c2
@ -3327,6 +3327,11 @@ void apply_server_state(void)
|
||||
continue; /* next server */
|
||||
st_line = eb64_entry(node, typeof(*st_line), node);
|
||||
srv_update_state(srv, global_vsn, st_line->params+4);
|
||||
|
||||
/* the node may be released now */
|
||||
eb64_delete(node);
|
||||
free(st_line->line);
|
||||
free(st_line);
|
||||
}
|
||||
|
||||
continue; /* next proxy */
|
||||
|
Loading…
Reference in New Issue
Block a user