Skip to content

Commit 4b57435

Browse files
committed
s
1 parent 12e6f9b commit 4b57435

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/observer/storage/record/record_manager.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -507,14 +507,14 @@ RC PaxRecordPageHandler::get_chunk(Chunk &chunk)
507507
for(int i=0;i<chunk.column_num();i++)
508508
{
509509
int id_ = chunk.column_ids((size_t)i);
510-
unique_ptr<Column> ptr;
510+
unique_ptr<Column> ptr();
511511
char* d ;
512-
if(i==0)
512+
if(id_==0)
513513
d= frame_->data() + page_header_->data_offset;
514514
else
515-
d = frame_->data() + page_header_->data_offset + col_idx[i-1];
515+
d = frame_->data() + page_header_->data_offset + col_idx[id_-1];
516516
ptr->append(d,page_header_->record_num);
517-
chunk.add_column(ptr,i);
517+
chunk.add_column(ptr,id_);
518518
}
519519
return RC::SUCCESS;
520520
}

0 commit comments

Comments
 (0)