We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12e6f9b commit 4b57435Copy full SHA for 4b57435
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();
511
char* d ;
512
- if(i==0)
+ if(id_==0)
513
d= frame_->data() + page_header_->data_offset;
514
else
515
- d = frame_->data() + page_header_->data_offset + col_idx[i-1];
+ d = frame_->data() + page_header_->data_offset + col_idx[id_-1];
516
ptr->append(d,page_header_->record_num);
517
- chunk.add_column(ptr,i);
+ chunk.add_column(ptr,id_);
518
}
519
return RC::SUCCESS;
520
0 commit comments