MINOR: map/acl: add the possibility to specify the version in "show map/acl"
authorWilly Tarreau <w@1wt.eu>
Fri, 30 Apr 2021 10:09:54 +0000 (12:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Apr 2021 13:36:31 +0000 (15:36 +0200)
commit95f753e4037c95c4e17084781616fea2bb4c14bd
treeb7fec17bcc4d259ac5658357ed4763572c4bce41
parente3a42a6c2dd9f5c4f98b72b36a27cf14b88a3bfb
MINOR: map/acl: add the possibility to specify the version in "show map/acl"

The maps and ACLs internally all have two versions, the "current" one,
which is the one being matched against, and the "next" one, the one being
filled during an atomic replacement. Till now the "show" commands only used
to show the current one but it can be convenient to be able to show other
ones as well, so let's add the ability to do this with "show map" and
"show acl". The method used here consists in passing the version number
as "@<ver>" before the map/acl name or ID. It would have been better after
it but that could create confusion with keys already using such a format.
doc/management.txt
src/map.c