]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: map/acl: make "add map/acl" support an optional version number
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Apr 2021 13:23:36 +0000 (15:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Apr 2021 13:36:31 +0000 (15:36 +0200)
commitbb51c44d64c59ee2c39a9fe10beb78b7815b292b
tree0826b1680ae51eaad9f889f8f0ea8791f46b8683
parent7a562ca809fc8bb99b990fd4f29a6d29e39acfaa
MINOR: map/acl: make "add map/acl" support an optional version number

By passing a version number to "add map/acl", it becomes possible to
atomically replace maps and ACLs. The principle is that a new version
number is first retrieved by calling"prepare map/acl", and this version
number is used with "add map" and "add acl". Newly added entries then
remain invisible to the matching mechanism but are visible in "show
map/acl" when the version number is specified, or may be cleard with
"clear map/acl". Finally when the insertion is complete, a
"commit map/acl" command must be issued, and the version is atomically
updated so that there is no intermediate state with incomplete entries.
doc/management.txt
src/map.c