]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: threads/sample: Change temp_smp into a thread local variable
authorEmeric Brun <ebrun@haproxy.com>
Wed, 14 Jun 2017 12:15:36 +0000 (14:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 12:58:31 +0000 (13:58 +0100)
src/sample.c

index 62259ef3eaeb36cd27320a224ea1d4a9aeafc5c3..f1cfad4f36582734d9297ca0e7ffc1488c15f0b5 100644 (file)
@@ -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 = {