MINOR: vars: add a VF_CREATEONLY flag for creation
authorWilly Tarreau <w@1wt.eu>
Wed, 8 Sep 2021 09:38:25 +0000 (11:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Sep 2021 09:47:30 +0000 (11:47 +0200)
commit4994b57728af4cbd446dedb7aa71c44d43503b69
tree6320fc32320b185202a273d8d6dce93f5ea91701
parent7978c5c42204adb9fa0d9c57c9288c579691482a
MINOR: vars: add a VF_CREATEONLY flag for creation

Passing this flag to var_set() will result in the variable to only be
created if it did not exist, otherwise nothing is done (it's not even
updated). This will be used for pre-registering names.
include/haproxy/vars-t.h
src/vars.c