]> git.kaiwu.me - haproxy.git/commit
CLEANUP: mworker: remove the type field in mworker_proc
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 12 Apr 2019 14:09:23 +0000 (16:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Apr 2019 11:26:43 +0000 (13:26 +0200)
commit8f7069a3899a9320825a2f987c384309f5f695ed
treee52c2f415159ca7d6f070b6b2fb47a580777baa0
parentbd3de3efb7125f2547b52fd682ce9920c9d7552d
CLEANUP: mworker: remove the type field in mworker_proc

Since the introduction of the options field, we can use it to store the
type of process.

type = 'm' is replaced by PROC_O_TYPE_MASTER
type = 'w' is replaced by PROC_O_TYPE_WORKER
type = 'e' is replaced by PROC_O_TYPE_PROG

The old values are still used in the HAPROXY_PROCESSES environment
variable to pass the information during a reload.
include/types/global.h
src/cli.c
src/haproxy.c
src/mworker-prog.c
src/mworker.c