CLEANUP: pattern: delete the back refs at once during pat_ref_reload()
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Oct 2020 17:55:20 +0000 (18:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Nov 2020 18:27:08 +0000 (19:27 +0100)
commitd4164dcd4acabe34106d8ea9fd3ce9da210ca0f0
tree929d0b1c3c063e96c296a456ae82e565d4f87eb4
parent3ee0de1b416fae3c7d9885e37e2592953bace86e
CLEANUP: pattern: delete the back refs at once during pat_ref_reload()

It's pointless to delete a backref and relink it to the next entry since
the next entry is going to do the exact same and so on until all of them
are deleted. Let's simply delete backrefs on reload.
src/pattern.c