diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2024-02-13 11:41:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@ydb.tech> | 2024-02-14 14:26:38 +0000 |
commit | a614c66a7494517812603245ab2de06988d040a3 (patch) | |
tree | 70a926495c73141ca15d07899c34af5eb4a90f80 | |
parent | a1c2fd9f4ef13bb1619d2821c479f4f6cb1387ad (diff) | |
download | ydb-a614c66a7494517812603245ab2de06988d040a3.tar.gz |
Intermediate changes
-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); |