Skip to content

Commit ddcb25a

Browse files
authored
DQ fix rope creation (#12073)
1 parent 4559701 commit ddcb25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ydb/library/yql/dq/common/rope_over_buffer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ TRope MakeReadOnlyRope(TChunkedBuffer&& buffer) {
3737
while (!buffer.Empty()) {
3838
auto& front = buffer.Front();
3939
TRope chunk(new TContigousChunkOverBuf(front.Owner, {front.Buf.data(), front.Buf.size()}));
40-
result.Insert(result.End(), TRope(new TContigousChunkOverBuf(front.Owner, {front.Buf.data(), front.Buf.size()})));
40+
result.Insert(result.End(), std::move(chunk));
4141
buffer.Erase(front.Buf.size());
4242
}
4343

0 commit comments

Comments
 (0)