From e5c918bcefbaa1bd203bc58ec7c3c6b2e52d70a5 Mon Sep 17 00:00:00 2001 From: Emeric Brun Date: Wed, 14 Jun 2017 14:15:36 +0200 Subject: [PATCH] MINOR: threads/sample: Change temp_smp into a thread local variable --- src/sample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sample.c b/src/sample.c index 62259ef3ea..f1cfad4f36 100644 --- 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

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 = { -- 2.47.3