diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-02-13 11:41:25 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2024-02-13 11:53:08 +0300 |
commit | fa88d08e86c015bbd104e08ef12ba78188de6cf5 (patch) | |
tree | 5439cc0e0386a2aa1cb6db0aa9da0c4e7395048c /yt | |
parent | 8ee6bfd26b9e90e07e530906f5a5d4b198db6ead (diff) | |
download | ydb-fa88d08e86c015bbd104e08ef12ba78188de6cf5.tar.gz |
Intermediate changes
Diffstat (limited to 'yt')
-rw-r--r-- | yt/yt/client/object_client/helpers.cpp | 8 | ||||
-rw-r--r-- | yt/yt/client/object_client/helpers.h | 3 |
2 files changed, 11 insertions, 0 deletions
diff --git a/yt/yt/client/object_client/helpers.cpp b/yt/yt/client/object_client/helpers.cpp index ac03ca5c90..1413c755f3 100644 --- a/yt/yt/client/object_client/helpers.cpp +++ b/yt/yt/client/object_client/helpers.cpp @@ -188,6 +188,14 @@ bool IsTabletOwnerType(EObjectType type) type == EObjectType::HunkStorage; } +bool IsChunkOwnerType(EObjectType type) +{ + return + IsTableType(type) || + type == EObjectType::File || + type == EObjectType::Journal; +} + bool IsCellType(EObjectType type) { return diff --git a/yt/yt/client/object_client/helpers.h b/yt/yt/client/object_client/helpers.h index 2b6dc85da7..2070dc9f42 100644 --- a/yt/yt/client/object_client/helpers.h +++ b/yt/yt/client/object_client/helpers.h @@ -42,6 +42,9 @@ bool IsLogTableType(EObjectType type); //! Checks if the given type is tablet owner. bool IsTabletOwnerType(EObjectType type); +//! Checks if the given type is chunk owner. +bool IsChunkOwnerType(EObjectType type); + //! Checks if the given type is cell. bool IsCellType(EObjectType type); |