mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 06:01:57 +00:00
Merge branch 'clang17_fix' of github.com:Algunenano/ClickHouse into export-logs-in-ci
This commit is contained in:
commit
74cd55f91b
@ -396,9 +396,9 @@ std::unique_ptr<ReadBuffer> createReadBuffer(
|
|||||||
throw Exception(ErrorCodes::CANNOT_COMPILE_REGEXP,
|
throw Exception(ErrorCodes::CANNOT_COMPILE_REGEXP,
|
||||||
"Cannot compile regex from glob ({}): {}", current_path, matcher->error());
|
"Cannot compile regex from glob ({}): {}", current_path, matcher->error());
|
||||||
|
|
||||||
return reader->readFile([matcher = std::move(matcher)](const std::string & path)
|
return reader->readFile([my_matcher = std::move(matcher)](const std::string & path)
|
||||||
{
|
{
|
||||||
return re2::RE2::FullMatch(path, *matcher);
|
return re2::RE2::FullMatch(path, *my_matcher);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user