MINOR: threads/sample: Change temp_smp into a thread local variable

This commit is contained in:
Emeric Brun 2017-06-14 14:15:36 +02:00 committed by Willy Tarreau
parent 819fc6f563
commit e5c918bcef

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