diff options
author | ermolovd <ermolovd@yandex-team.com> | 2024-04-12 01:27:33 +0300 |
---|---|---|
committer | ermolovd <ermolovd@yandex-team.com> | 2024-04-12 01:37:07 +0300 |
commit | 174505ce5cdff80adfba073dc3ee3528c7f0c94a (patch) | |
tree | f4152a115b643add9a5ee4f6adb5628d7e57665a /yt/cpp | |
parent | 0f11fd0799a47beb400c526f15e2a3ac86ee5448 (diff) | |
download | ydb-174505ce5cdff80adfba073dc3ee3528c7f0c94a.tar.gz |
Fix crash in retryful writer v2
d95cdb95b36efff7cbf942996a10ee4ff755bbfc
Diffstat (limited to 'yt/cpp')
-rw-r--r-- | yt/cpp/mapreduce/client/retryful_writer_v2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt/cpp/mapreduce/client/retryful_writer_v2.cpp b/yt/cpp/mapreduce/client/retryful_writer_v2.cpp index 583bef8954..cabc6cf8fa 100644 --- a/yt/cpp/mapreduce/client/retryful_writer_v2.cpp +++ b/yt/cpp/mapreduce/client/retryful_writer_v2.cpp @@ -60,7 +60,7 @@ public: } private: - std::shared_ptr<std::string> Buffer_ = nullptr; + std::shared_ptr<std::string> Buffer_ = std::make_shared<std::string>(); ssize_t Size_ = 0; ssize_t Capacity_ = 0; }; @@ -246,7 +246,7 @@ private: struct TWriteTask { NThreading::TPromise<void> SendingComplete; - std::shared_ptr<std::string> Data; + std::shared_ptr<std::string> Data = std::make_shared<std::string>(); ssize_t Size = 0; bool BufferComplete = false; }; |