mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-23 02:43:39 -04:00
MINOR: server: mark servers referenced by LUA script as non purgeable
Each server that is retrieved by a LUA script is marked as non purgeable. Note that for this to work, the script must have been executed already once.
This commit is contained in:
parent
0626961ad3
commit
86f3707d14
1 changed files with 3 additions and 1 deletions
|
|
@ -910,7 +910,9 @@ int hlua_fcn_new_server(lua_State *L, struct server *srv)
|
|||
|
||||
static struct server *hlua_check_server(lua_State *L, int ud)
|
||||
{
|
||||
return hlua_checkudata(L, ud, class_server_ref);
|
||||
struct server *srv = hlua_checkudata(L, ud, class_server_ref);
|
||||
srv->flags |= SRV_F_NON_PURGEABLE;
|
||||
return srv;
|
||||
}
|
||||
|
||||
int hlua_server_get_stats(lua_State *L)
|
||||
|
|
|
|||
Loading…
Reference in a new issue