mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 00:30:49 +00:00
Fix error
This commit is contained in:
parent
6e09a2a642
commit
a96b4d50d6
@ -97,14 +97,14 @@ void updateResources(std::string_view name, const void * address, SymbolIndex::R
|
||||
name = name.substr((name[0] == '_') + strlen("binary_"));
|
||||
name = name.substr(0, name.size() - strlen("_start"));
|
||||
|
||||
resources[name] = std::string_view{char_address, 0};
|
||||
resources.emplace(name, std::string_view{char_address, 0});
|
||||
}
|
||||
else if (name.ends_with("_end"))
|
||||
{
|
||||
name = name.substr((name[0] == '_') + strlen("binary_"));
|
||||
name = name.substr(0, name.size() - strlen("_end"));
|
||||
|
||||
if (auto it = resources.find(name); it != resources.end())
|
||||
if (auto it = resources.find(name); it != resources.end() && it->second.size() == 0)
|
||||
{
|
||||
auto start = it->second.data();
|
||||
assert(char_address >= start);
|
||||
|
Loading…
Reference in New Issue
Block a user