This series fixes issue https://github.com/haproxy/haproxy/issues/3221,
where "peers" section keywords were not displayed when using the -dKall
diagnostic option.
Also follows
https://www.mail-archive.com/[email protected]/msg46431.html.

Since "peers" parsing logic has complex branching conditions, this fix is 
splited into three patches for easier review.

    1/3 - REORG: Move peers parsing code to dedicated file                      
                   
    2/3 - MINOR: Convert to standard cfg_kw_list registration                   
                   
    3/3 - MINOR: Register keywords for -dKall visibility

Tested with various peers configs including bind, peer, server, shards,
table, log, disabled, and enabled keywords. All keywords now appear
correctly in -dKall output.

Hyeonggeun Oh (3):
  REORG: cfgparse: move peers parsing to cfgparse-peers.c
  MINOR: cfgparse-peers: convert to cfg_kw_list registration
  MINOR: cfgparse-peers: register peers keywords for -dKall operation

 Makefile             |   2 +-
 src/cfgparse-peers.c | 706 +++++++++++++++++++++++++++++++++++++++++++
 src/cfgparse.c       | 576 +----------------------------------
 3 files changed, 708 insertions(+), 576 deletions(-)
 create mode 100644 src/cfgparse-peers.c

-- 
2.48.1



Reply via email to