mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-21 06:06:59 -04:00
MINOR: config: add a diag for invalid cpu-map statement
If a cpu-statement is refering to multiple processes and threads, it is silently ignored. Add a diag message to report it to the user.
This commit is contained in:
parent
af02c57406
commit
a2944ecf5d
1 changed files with 3 additions and 0 deletions
|
|
@ -1156,6 +1156,9 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
HA_DIAG_WARNING_COND(proc != 0x1 && thread != 0x1,
|
||||
"parsing [%s:%d] : cpu-map statement is considered invalid and thus ignored as it addresses multiple processes and threads at the same time. At least one of them should be 1 and only 1.", file, linenum);
|
||||
}
|
||||
#else
|
||||
ha_alert("parsing [%s:%d] : '%s' is not enabled, please check build options for USE_CPU_AFFINITY.\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue