patterns: "del map/acl" removes only one of duplicate keys, "clear map/acl @<ver>" may do nothing (3.4 regression) · Issue #3523 · haproxy/haproxy · GitHub
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
patterns: "del map/acl" removes only one of duplicate keys, "clear map/acl @<ver>" may do nothing (3.4 regression) #3523
pat_ref_gen_delete() now deletes only the element found by cebs_item_lookup(); it used to walk the duplicates with cebs_item_next_dup(). This affects all callers: CLI del map/acl, del-map/del-acl actions, Lua, acme.
pat_ref_purge_range() walks the generations in ascending order and, when from <= to, stops at the first one outside the range even if it is below from. clear map @1 passes from = to = 1, so generation 0 stops the loop:
if (gen->gen_id-from>to-from) {
if (from <= to) {
break;
}
continue;
}
Do you have an idea how to solve the issue?
In pat_ref_gen_delete(), walk the duplicates as pat_ref_set_from_elt() does, then publish the event once:
Activity