]> git.kaiwu.me - haproxy.git/commit
MINOR: pattern: index duplicates
authorThierry FOURNIER <tfournier@exceliance.fr>
Wed, 29 Jan 2014 23:27:15 +0000 (00:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Mar 2014 17:06:08 +0000 (18:06 +0100)
commit31db4ae7b457888b911a7f836c57c420ddc1a546
treeff1566f79f72edcc7af57672dacf3a345ef9545a
parentd32079e30e83921e83c94871918ad417dbc21731
MINOR: pattern: index duplicates

The indexation functions now accept duplicates. This way it is possible
to always have some consistency between lists and trees. The "add" command
will always add regardless of any previous existence. The new entry will
not be used because both trees and list retrieve keys in insertion order.
Thus the "add" operation will always succeed (as long as there is enough
memory).
src/pattern.c