diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-04-20 06:53:41 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-04-20 06:53:41 +0300 |
commit | a691b4ea21364a747960777af992ce6c28ee25e6 (patch) | |
tree | 5a192aa9f03df68ae0ee7a32d75a8553cccc6ec2 /library/cpp | |
parent | 7f7a8dc30242d15fa63fbd6d77693c2a2dfb3dec (diff) | |
download | ydb-a691b4ea21364a747960777af992ce6c28ee25e6.tar.gz |
intermediate changes
ref:7b5e8260f011390fe345327d8f5ee1c7938e601a
Diffstat (limited to 'library/cpp')
-rw-r--r-- | library/cpp/actors/util/rope.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/cpp/actors/util/rope.h b/library/cpp/actors/util/rope.h index f5595efbaa6..04c6c58547a 100644 --- a/library/cpp/actors/util/rope.h +++ b/library/cpp/actors/util/rope.h @@ -574,7 +574,9 @@ public: TRope(TString s) { if (s) { Size = s.size(); - s.reserve(32); + if (s.capacity() < 32) { + s.reserve(32); + } Chain.PutToEnd(std::move(s)); } } |