MINOR: pattern: implement pat_ref_load() to load a pattern at a given generation
authorWilly Tarreau <w@1wt.eu>
Thu, 29 Oct 2020 08:21:43 +0000 (09:21 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Nov 2020 18:27:09 +0000 (19:27 +0100)
commit1a6857b9c198ff3f22ae0b3d1d09f419110939d8
treeedf86cab0a9415efb6116a6d582ef384e6e0b769
parent0439e5eeb45811bec658e55c2c757545c27243b0
MINOR: pattern: implement pat_ref_load() to load a pattern at a given generation

pat_ref_load() basically combines pat_ref_append() and pat_ref_commit().
It's very similar to pat_ref_add() except that it also allows to set the
generation ID and the line number. pat_ref_add() was modified to directly
rely on it to avoid code duplication. Note that a previous declaration
of pat_ref_load() was removed as it was just a leftover of an earlier
incarnation of something possibly similar, so no existing functionality
was changed here.
include/haproxy/pattern.h
src/pattern.c