aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/yt/memory/ref.h
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2023-06-06 18:53:47 +0300
committerbabenko <babenko@yandex-team.com>2023-06-06 18:53:47 +0300
commitf662d68f5a0c839f02969571c1fbba97c7711be4 (patch)
tree2b3139782772eac6c64732bc4935667eb34a3a8d /library/cpp/yt/memory/ref.h
parentd0bbc6698a9beab10362d6e0ac5ad09e5497f94f (diff)
downloadydb-f662d68f5a0c839f02969571c1fbba97c7711be4.tar.gz
Copy cached responses in TObjectServiceCache
Diffstat (limited to 'library/cpp/yt/memory/ref.h')
-rw-r--r--library/cpp/yt/memory/ref.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/cpp/yt/memory/ref.h b/library/cpp/yt/memory/ref.h
index 78b5cf58cb..a47188180c 100644
--- a/library/cpp/yt/memory/ref.h
+++ b/library/cpp/yt/memory/ref.h
@@ -302,6 +302,10 @@ public:
std::vector<TSharedRef> ToVector() const;
TString ToString() const;
+ //! Creates a copy of a given TSharedRefArray.
+ //! The memory is marked with a given tag.
+ static TSharedRefArray MakeCopy(const TSharedRefArray& array, TRefCountedTypeCookie tagCookie);
+
private:
friend class TSharedRefArrayBuilder;