We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe48073 commit d8cc77cCopy full SHA for d8cc77c
src/observer/storage/record/record_manager.cpp
@@ -507,14 +507,14 @@ RC PaxRecordPageHandler::get_chunk(Chunk &chunk)
507
for(int i=0;i<chunk.column_num();i++)
508
{
509
int id_ = chunk.column_ids((size_t)i);
510
- unique_ptr<Column> ptr();
+ unique_ptr<Column> ptr(new Column);
511
char* d ;
512
if(id_==0)
513
d= frame_->data() + page_header_->data_offset;
514
else
515
d = frame_->data() + page_header_->data_offset + col_idx[id_-1];
516
ptr->append(d,page_header_->record_num);
517
- chunk.add_column(ptr,id_);
+ chunk.add_column(std::move(ptr),id_);
518
}
519
return RC::SUCCESS;
520
0 commit comments