From df48fcb284328c329c883e9fb3f140d2efae533a Mon Sep 17 00:00:00 2001 From: Evan Miller Date: Thu, 12 Nov 2020 13:38:32 -0500 Subject: [PATCH] Use thread-local storage to cache run-time options --- src/libmdb/options.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libmdb/options.c b/src/libmdb/options.c index 68ba32d..f8ef468 100644 --- a/src/libmdb/options.c +++ b/src/libmdb/options.c @@ -24,8 +24,8 @@ #define DEBUG 1 -static unsigned long opts; -static int optset; +static __thread unsigned long opts; +static __thread int optset; static void load_options(void);