mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-14 14:42:13 -04:00
A bit similar to what was done for sample fetch functions and converters, we now store with each action keyword the location of the initcall when they're registered this way. Since there are many functions only calling a LIST_APPEND() (one per ruleset), we now implement a dedicated function to store the context in all keywords before doing the append. However that's not sufficient, because keywords are not mandatory for actions, so we cannot safely rely on rule->kw. Thus we then set the exec_ctx per rule when they are all scanned in check_action_rules(), based on the keyword if it exists, otherwise we make a context from the action_ptr function if it is set (it should). Finally at all call points we now check rule->exec_ctx. |
||
|---|---|---|
| .. | ||
| haproxy | ||
| import | ||
| make | ||