CLEANUP: map/cli: always detach the backref from the list after "show map"
authorWilly Tarreau <w@1wt.eu>
Tue, 3 May 2022 13:42:07 +0000 (15:42 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2022 16:13:35 +0000 (18:13 +0200)
commitc7e9706e0f3faff16a63c2fd9e6f7b0ef9914262
tree98ec856094274f0e56824b2f54032943cdf56ad4
parenta0d6280af4e04a8607980b3fafcccd8f10bbb5c8
CLEANUP: map/cli: always detach the backref from the list after "show map"

There's no point checking the state before deciding to detach the backref
on "show map", it should always be done if the list is not empty. Note
that being empty guarantees that it's not linked into the list, and
conversely not being empty guarantees that it's in the list, hence the
test doesn't need to be performed under the lock.
src/map.c