Skip to content

Commit

Permalink
shuffle around order of initialization..
Browse files Browse the repository at this point in the history
  • Loading branch information
Tishj committed Dec 15, 2024
1 parent 079a6d0 commit e6e3149
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/storage/table/column_segment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ ColumnSegment::ColumnSegment(DatabaseInstance &db, shared_ptr<BlockHandle> block
const unique_ptr<ColumnSegmentState> segment_state_p)

: SegmentBase<ColumnSegment>(start, count), db(db), type(type), type_size(GetTypeIdSize(type.InternalType())),
segment_type(segment_type), function(function_p), stats(std::move(statistics)), block(std::move(block_p)),
segment_type(segment_type), stats(std::move(statistics)), block(std::move(block_p)), function(function_p),
block_id(block_id_p), offset(offset), segment_size(segment_size_p) {

if (function.get().init_segment) {
Expand All @@ -81,8 +81,8 @@ ColumnSegment::ColumnSegment(DatabaseInstance &db, shared_ptr<BlockHandle> block
ColumnSegment::ColumnSegment(ColumnSegment &other, const idx_t start)

: SegmentBase<ColumnSegment>(start, other.count.load()), db(other.db), type(std::move(other.type)),
type_size(other.type_size), segment_type(other.segment_type), function(other.function),
stats(std::move(other.stats)), block(std::move(other.block)), block_id(other.block_id), offset(other.offset),
type_size(other.type_size), segment_type(other.segment_type), stats(std::move(other.stats)),
block(std::move(other.block)), function(other.function), block_id(other.block_id), offset(other.offset),
segment_size(other.segment_size), segment_state(std::move(other.segment_state)) {

// For constant segments (CompressionType::COMPRESSION_CONSTANT) the block is a nullptr.
Expand Down

0 comments on commit e6e3149

Please sign in to comment.