Skip to content

Commit

Permalink
Pad compression metadata to multiple of 8 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
royi-luo committed Aug 2, 2024
1 parent 521c8b1 commit d228140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage/compression/compression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ size_t CompressionMetadata::serializedSizeBytes(common::PhysicalTypeID internalD
for (const auto& childType : getChildTypes(internalDataType)) {
sizeToWrite += serializedSizeBytes(childType);
}
return sizeToWrite;
return sizeToWrite + (8 - sizeToWrite % 8) % 8;
}

std::vector<std::byte> CompressionMetadata::serializeToBytes(
Expand Down

0 comments on commit d228140

Please sign in to comment.