Skip to content

Commit 0ecc1b1

Browse files
Merge pull request ClickHouse#90703 from ClickHouse/backport/25.8/90474
Backport ClickHouse#90474 to 25.8: Fix(Hive): Fix thread-safety race condition in static extractor
2 parents b871ded + 52a597c commit 0ecc1b1

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)