Skip to content

Commit daa90b5

Browse files
authored
Merge pull request #1162 from Altinity/arthurpassos-patch-7
Backport of 90474 - Fix thread-safety race condition in static extractor
2 parents 3841418 + 406e0e5 commit daa90b5

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)