Skip to content

Commit 406e0e5

Browse files
authored
Change extractor to thread_local for safety
1 parent 3841418 commit 406e0e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Storages/HivePartitioningUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static auto makeExtractor()
3434

3535
HivePartitioningKeysAndValues parseHivePartitioningKeysAndValues(const String & path)
3636
{
37-
static auto extractor = makeExtractor();
37+
thread_local auto extractor = makeExtractor();
3838

3939
HivePartitioningKeysAndValues key_values;
4040

0 commit comments

Comments
 (0)