mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-02 19:42:41 +00:00
MINOR: threads/regex: Change Regex trash buffer into a thread local variable
This commit is contained in:
parent
8c1aaa201a
commit
272e252e61
@ -76,7 +76,7 @@ struct hdr_exp {
|
||||
void *cond; /* a possible condition or NULL */
|
||||
};
|
||||
|
||||
extern regmatch_t pmatch[MAX_MATCH];
|
||||
extern THREAD_LOCAL regmatch_t pmatch[MAX_MATCH];
|
||||
|
||||
/* "str" is the string that contain the regex to compile.
|
||||
* "regex" is preallocated memory. After the execution of this function, this
|
||||
|
@ -22,7 +22,7 @@
|
||||
#include <proto/log.h>
|
||||
|
||||
/* regex trash buffer used by various regex tests */
|
||||
regmatch_t pmatch[MAX_MATCH]; /* rm_so, rm_eo for regular expressions */
|
||||
THREAD_LOCAL regmatch_t pmatch[MAX_MATCH]; /* rm_so, rm_eo for regular expressions */
|
||||
|
||||
int exp_replace(char *dst, unsigned int dst_size, char *src, const char *str, const regmatch_t *matches)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user