From de39ed39f8e75afb9718f242069614646d08c26c Mon Sep 17 00:00:00 2001 From: DongHyun Song Date: Mon, 14 Mar 2022 02:06:39 +0000 Subject: [PATCH] Revert "Use thread_local (instead of static) storage duration due to thread safety issue." This reverts commit 122bae587fb3d4d1879f567baa97b72bdd6a1a5a. Change-Id: Ic2ff664d602044b400c48063285039ded3472af9 --- src/common/filesystem/filesystem_provider_deviced.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/filesystem/filesystem_provider_deviced.cc b/src/common/filesystem/filesystem_provider_deviced.cc index 3fd71bc6..60bc1090 100644 --- a/src/common/filesystem/filesystem_provider_deviced.cc +++ b/src/common/filesystem/filesystem_provider_deviced.cc @@ -146,7 +146,7 @@ FilesystemProviderDeviced::FilesystemProviderDeviced() FilesystemProviderDeviced& FilesystemProviderDeviced::Create() { ScopeLogger(); - thread_local FilesystemProviderDeviced instance; + static FilesystemProviderDeviced instance; return instance; } -- 2.34.1