diff options
author | pechatnov <pechatnov@yandex-team.com> | 2023-03-02 18:12:04 +0300 |
---|---|---|
committer | pechatnov <pechatnov@yandex-team.com> | 2023-03-02 18:12:04 +0300 |
commit | ef689e4b073f09baaeeeadcec1b4dd44c65f6c2d (patch) | |
tree | 875f01f84a3fa536f05d01957ff1724f2fdb6fc4 /library/cpp/yt/memory/ref.cpp | |
parent | 17ea27a957c0c9d02155009a458e348f186be60d (diff) | |
download | ydb-ef689e4b073f09baaeeeadcec1b4dd44c65f6c2d.tar.gz |
YT: Fix yt/yt/client, yt/yt/ytlib for std::string and include it to autocheck with TString=std::string
Diffstat (limited to 'library/cpp/yt/memory/ref.cpp')
-rw-r--r-- | library/cpp/yt/memory/ref.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/cpp/yt/memory/ref.cpp b/library/cpp/yt/memory/ref.cpp index 06ec7f9ffe..d48277f84c 100644 --- a/library/cpp/yt/memory/ref.cpp +++ b/library/cpp/yt/memory/ref.cpp @@ -29,7 +29,11 @@ public: : Blob_(std::move(blob)) { } - // NB: TBlob's capacity is dynamic; cannot provide GetTotalByteSize implementation. + // TSharedRangeHolder overrides. + std::optional<size_t> GetTotalByteSize() const override + { + return Blob_.Capacity(); + } private: const TBlob Blob_; |