diff options
author | kvk1920 <kvk1920@yandex-team.com> | 2024-07-05 18:59:48 +0300 |
---|---|---|
committer | kvk1920 <kvk1920@yandex-team.com> | 2024-07-05 19:17:06 +0300 |
commit | 4f4448a2dd0c402029f9bd62fe7e78c07c91f89f (patch) | |
tree | 90dd350bd18986ff9508b41678411ce767892ed9 | |
parent | 61f8eb355e956fd03694c3e307e827e24dca9b10 (diff) | |
download | ydb-4f4448a2dd0c402029f9bd62fe7e78c07c91f89f.tar.gz |
Introduce TSequoiaSession
cd3241542f79ee3b68a1893961e616927c0ceb43
-rw-r--r-- | yt/yt/core/ypath/helpers-inl.h | 4 | ||||
-rw-r--r-- | yt/yt/core/ytree/ypath_detail.h | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/yt/yt/core/ypath/helpers-inl.h b/yt/yt/core/ypath/helpers-inl.h index 6a318a888d..804540edef 100644 --- a/yt/yt/core/ypath/helpers-inl.h +++ b/yt/yt/core/ypath/helpers-inl.h @@ -37,14 +37,14 @@ TYPath YPathJoin(const TYPath& path, TArgs&&... literals) { TStringBuilder builder; - auto tryGetLength = [] (const auto& literal) { + auto estimateLength = [] (const auto& literal) { if constexpr (requires { literal.length(); }) { return literal.length(); } else { return 1; } }; - builder.Reserve(path.length() + (sizeof...(literals) + ... + tryGetLength(literals))); + builder.Reserve(path.length() + (sizeof...(literals) + ... + estimateLength(literals))); builder.AppendString(path); NDetail::YPathJoinImpl(&builder, literals...); diff --git a/yt/yt/core/ytree/ypath_detail.h b/yt/yt/core/ytree/ypath_detail.h index d090cd25f7..694b767be4 100644 --- a/yt/yt/core/ytree/ypath_detail.h +++ b/yt/yt/core/ytree/ypath_detail.h @@ -31,7 +31,8 @@ struct IYPathServiceContext { virtual void SetRequestHeader(std::unique_ptr<NRpc::NProto::TRequestHeader> header) = 0; - virtual void SetReadRequestComplexityLimiter(const TReadRequestComplexityLimiterPtr& limiter) = 0; + virtual void SetReadRequestComplexityLimiter( + const TReadRequestComplexityLimiterPtr& limiter) = 0; virtual TReadRequestComplexityLimiterPtr GetReadRequestComplexityLimiter() = 0; }; @@ -138,9 +139,9 @@ protected: //////////////////////////////////////////////////////////////////////////////// -#define DECLARE_SUPPORTS_METHOD(method, base) \ +#define DECLARE_SUPPORTS_METHOD(method, ...) \ class TSupports##method \ - : public base \ + __VA_OPT__(: public) __VA_ARGS__ \ { \ protected: \ DECLARE_YPATH_SERVICE_METHOD(::NYT::NYTree::NProto, method); \ @@ -196,7 +197,6 @@ protected: DEFINE_YPATH_CONTEXT_IMPL(IYPathServiceContext, TTypedYPathServiceContext); class TSupportsExistsBase - : public virtual TRefCounted { protected: template <class TContextPtr> |