mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Merge pull request #71052 from ClickHouse/backport/24.8/70590
Backport #70590 to 24.8: Ignore frozen_metadata.txt while traversing shadow directory from system.remote_data_paths
This commit is contained in:
commit
432d29ff24
@ -86,10 +86,12 @@ private:
|
||||
static bool skipPredicateForShadowDir(const String & local_path)
|
||||
{
|
||||
// `shadow/{backup_name}/revision.txt` is not an object metadata file
|
||||
// `shadow/../{part_name}/frozen_metadata.txt` is not an object metadata file
|
||||
const auto path = fs::path(local_path);
|
||||
return path.filename() == "revision.txt" &&
|
||||
return (path.filename() == "revision.txt" &&
|
||||
path.parent_path().has_parent_path() &&
|
||||
path.parent_path().parent_path().filename() == "shadow";
|
||||
path.parent_path().parent_path().filename() == "shadow") ||
|
||||
path.filename() == "frozen_metadata.txt";
|
||||
}
|
||||
|
||||
const UInt64 max_block_size;
|
||||
|
Loading…
Reference in New Issue
Block a user