MINOR: pattern: during reload, delete elements frem the ref, not the expression
authorWilly Tarreau <w@1wt.eu>
Tue, 3 Nov 2020 12:36:58 +0000 (13:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 5 Nov 2020 18:27:09 +0000 (19:27 +0100)
commit2817472bb07ae1b5f8a0f73aa154ea5ec6c193bc
tree6577db9673ea10fc69fb76ce530c05468edac65f
parentae83e63b487bf41666d0efd641d2dea9d2c283d2
MINOR: pattern: during reload, delete elements frem the ref, not the expression

Instead of scanning all elements from the expression and using the
slow delete path there, let's use the faster way which involves
pat_delete_gen() while the elements are detached from ther reference.
src/pattern.c