aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcherepashka <cherepashka@yandex-team.com>2025-04-15 14:50:33 +0300
committercherepashka <cherepashka@yandex-team.com>2025-04-15 15:23:39 +0300
commitd62f440223d7ebce91b051f2a953a65e4c39db7a (patch)
treeb0624f5abef7db4dc2b8c95e5369acc6c094c82e
parentc3eed92629687af94073f570c29ea338bdd66548 (diff)
downloadydb-d62f440223d7ebce91b051f2a953a65e4c39db7a.tar.gz
Fixed additional paths in ValidatePrerequisiteRevisionPaths
commit_hash:ebf6949a9e3c81b2cb22ea68574d8f413dd5dd48
-rw-r--r--yt/yt/core/ytree/ypath_client.cpp6
-rw-r--r--yt/yt/core/ytree/ypath_client.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/yt/yt/core/ytree/ypath_client.cpp b/yt/yt/core/ytree/ypath_client.cpp
index 435577dc913..934b2d498e7 100644
--- a/yt/yt/core/ytree/ypath_client.cpp
+++ b/yt/yt/core/ytree/ypath_client.cpp
@@ -266,6 +266,12 @@ TYPathMaybeRef GetOriginalRequestTargetYPath(const NRpc::NProto::TRequestHeader&
: TYPathMaybeRef(ypathExt.target_path());
}
+const google::protobuf::RepeatedPtrField<TProtobufString>& GetRequestAdditionalPaths(const NRpc::NProto::TRequestHeader& header)
+{
+ const auto& ypathExt = header.GetExtension(NProto::TYPathHeaderExt::ypath_header_ext);
+ return ypathExt.additional_paths();
+}
+
const google::protobuf::RepeatedPtrField<TProtobufString>& GetOriginalRequestAdditionalPaths(const NRpc::NProto::TRequestHeader& header)
{
const auto& ypathExt = header.GetExtension(NProto::TYPathHeaderExt::ypath_header_ext);
diff --git a/yt/yt/core/ytree/ypath_client.h b/yt/yt/core/ytree/ypath_client.h
index b9b2200baaf..3e34958b488 100644
--- a/yt/yt/core/ytree/ypath_client.h
+++ b/yt/yt/core/ytree/ypath_client.h
@@ -209,6 +209,7 @@ using TYPathMaybeRef = std::conditional_t<IsArcadiaProtobuf, const TYPath&, TYPa
TYPathMaybeRef GetRequestTargetYPath(const NRpc::NProto::TRequestHeader& header);
TYPathMaybeRef GetOriginalRequestTargetYPath(const NRpc::NProto::TRequestHeader& header);
+const google::protobuf::RepeatedPtrField<TProtobufString>& GetRequestAdditionalPaths(const NRpc::NProto::TRequestHeader& header);
const google::protobuf::RepeatedPtrField<TProtobufString>& GetOriginalRequestAdditionalPaths(const NRpc::NProto::TRequestHeader& header);
void SetRequestTargetYPath(NRpc::NProto::TRequestHeader* header, TYPathBuf path);