From: Emeric Brun Date: Wed, 14 Jun 2017 12:15:36 +0000 (+0200) Subject: MINOR: threads/sample: Change temp_smp into a thread local variable X-Git-Tag: v1.8-rc1~141 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e5c918bcefbaa1bd203bc58ec7c3c6b2e52d70a5;p=thirdparty%2Fhaproxy.git MINOR: threads/sample: Change temp_smp into a thread local variable --- 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 = {