projects
/
haproxy-2.1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
819fc6f
)
MINOR: threads/sample: Change temp_smp into a thread local variable
author
Emeric Brun
<ebrun@haproxy.com>
Wed, 14 Jun 2017 12:15:36 +0000
(14:15 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Tue, 31 Oct 2017 12:58:31 +0000
(13:58 +0100)
src/sample.c
patch
|
blob
|
history
diff --git
a/src/sample.c
b/src/sample.c
index
62259ef
..
f1cfad4
100644
(file)
--- a/
src/sample.c
+++ b/
src/sample.c
@@
-50,7
+50,7
@@
const char *smp_to_type[SMP_TYPES] = {
};
/* static sample used in sample_process() when <p> is NULL */
-static struct sample temp_smp;
+static THREAD_LOCAL struct sample temp_smp;
/* list head of all known sample fetch keywords */
static struct sample_fetch_kw_list sample_fetches = {