mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Merge pull request #28438 from azat/udf-race-fix-v2
Fix race in UDF (follow up)
This commit is contained in:
commit
be4c9102d8
@ -80,9 +80,9 @@ ASTPtr UserDefinedFunctionFactory::tryGet(const std::string & function_name) con
|
||||
std::vector<std::string> UserDefinedFunctionFactory::getAllRegisteredNames() const
|
||||
{
|
||||
std::vector<std::string> registered_names;
|
||||
registered_names.reserve(function_name_to_create_query.size());
|
||||
|
||||
std::lock_guard lock(mutex);
|
||||
registered_names.reserve(function_name_to_create_query.size());
|
||||
|
||||
for (const auto & [name, _] : function_name_to_create_query)
|
||||
registered_names.emplace_back(name);
|
||||
|
Loading…
Reference in New Issue
Block a user