Skip to content

Commit 9fac4bf

Browse files
eivanov89Gazizonoki
authored andcommitted
Fix OOM in value builder (#21090)
1 parent 19a17c7 commit 9fac4bf

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/last_commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2378fba9f99efb178b5c8a2c986bb6a4b754402b
1+
824ceef81947f283a068e13cc46703c70abe0cba

include/ydb-cpp-sdk/client/value/value.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,8 @@ class TValueBuilderBase : public TMoveOnly {
547547

548548
class TValueBuilder : public TValueBuilderBase<TValueBuilder> {
549549
public:
550-
TValueBuilder(google::protobuf::Arena* arena = nullptr);
550+
TValueBuilder();
551+
explicit TValueBuilder(google::protobuf::Arena* arena);
551552

552553
TValueBuilder(const TType& type);
553554

src/client/value/value.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3410,6 +3410,9 @@ template class TValueBuilderBase<TParamValueBuilder>;
34103410

34113411
////////////////////////////////////////////////////////////////////////////////
34123412

3413+
TValueBuilder::TValueBuilder()
3414+
: TValueBuilderBase() {}
3415+
34133416
TValueBuilder::TValueBuilder(google::protobuf::Arena* arena)
34143417
: TValueBuilderBase(arena) {}
34153418

0 commit comments

Comments
 (0)