commit | b5997f740b21ebb197e10a0f2fe9dc13163e1772 | [log] [tgz] |
---|---|---|
author | Emeric Brun <ebrun@haproxy.com> | Mon Jul 03 11:34:05 2017 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Oct 31 13:58:32 2017 +0100 |
tree | f572aaa4f51e1684223cb2fc11f7c5c0da7c5c8e | |
parent | 8ba59148aec9992943907a137688e8397da2edfa [diff] |
MAJOR: threads/map: Make acls/maps thread safe locks have been added in pat_ref and pattern_expr structures to protect all accesses to an instance of on of them. Moreover, a global lock has been added to protect the LRU cache used for pattern matching. Patterns are now duplicated after a successfull matching, to avoid modification by other threads when the result is used. Finally, the function reloading a pattern list has been modified to be thread-safe.