mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-22 14:33:36 +02:00
CLEANUP: pattern: remove the unused and dangerous pat_ref_reload()
This function was not used anymore after the atomic updates were implemented in 2.3, and it must not be used given that it does not yield and can easily make the process hang for tens of seconds on large acls/maps. Let's remove it before someone uses it as an example to implement something else!
This commit is contained in:
@@ -193,7 +193,6 @@ int pat_ref_delete_by_id(struct pat_ref *ref, struct pat_ref_elt *refelt);
|
||||
int pat_ref_prune(struct pat_ref *ref);
|
||||
int pat_ref_commit_elt(struct pat_ref *ref, struct pat_ref_elt *elt, char **err);
|
||||
int pat_ref_purge_range(struct pat_ref *ref, uint from, uint to, int budget);
|
||||
void pat_ref_reload(struct pat_ref *ref, struct pat_ref *replace);
|
||||
|
||||
/* Create a new generation number for next pattern updates and returns it. This
|
||||
* must be used to atomically insert new patterns that will atomically replace
|
||||
|
||||
Reference in New Issue
Block a user