CLEANUP: map/cli: stop using cli.i0/i1 to store the generation numbers
authorWilly Tarreau <w@1wt.eu>
Tue, 3 May 2022 12:12:56 +0000 (14:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commit76f771e78e2ef45ac02581f34d024245fa7cf040
tree89ce2b85990eefc02dedc9628da75ec5d1dc40ab
parent0fcecc63c8d6d156f68428b45a1741e9ce35be59
CLEANUP: map/cli: stop using cli.i0/i1 to store the generation numbers

The "show map"/"clear map" code used to rely on the cli's i0/i1 fields
to store the generation numbers to work with. That's particularly dirty
because it's done at places where ctx.map is also manipulated while they
are part of the same union, and the reason why this didn't cause trouble
is because cli.i0/i1 are at offset 216/224 while the map parts end at
204, so luckily there was no overlap.

Let's add these fields to the map context.
src/map.c