commit | 1fd52f70e59ca87307d1599d63efae041e8f27f1 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Nov 02 17:30:17 2020 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Nov 05 19:27:09 2020 +0100 |
tree | 92bd2f820438d58cb2459add8f01483fc52de843 | |
parent | a98b2882ac998ba4a11404ce82d0246d4673700f [diff] |
MINOR: pattern: introduce pat_ref_delete_by_ptr() to delete a valid reference Till now the only way to remove a known reference was via pat_ref_delete_by_id() which scans the whole list to find a matching pointer. Let's add pat_ref_delete_by_ptr() which takes a valid pointer. It can be called by the function above after the pointer is found, and can also be used to roll back a failed insertion much more efficiently.