Skip to content

Commit

Permalink
fix asan failure (#3424)
Browse files Browse the repository at this point in the history
  • Loading branch information
ray6080 committed May 1, 2024
1 parent 7b22167 commit f428c22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/store/column.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,8 @@ void Column::commitColumnChunkOutOfPlace(Transaction* transaction, node_group_id
append(chunk, nodeGroupIdx);
} else {
auto chunkMeta = getMetadata(nodeGroupIdx, transaction->getType());
auto columnChunk =
getEmptyChunkForCommit(1.5 * std::bit_ceil(chunkMeta.numValues + dstOffsets.size()));
auto columnChunk = getEmptyChunkForCommit(
std::max(std::bit_ceil(chunkMeta.numValues), getMaxOffset(dstOffsets) + 1));
scan(transaction, nodeGroupIdx, columnChunk.get());
for (auto i = 0u; i < dstOffsets.size(); i++) {
columnChunk->write(chunk, srcOffset + i, dstOffsets[i], 1 /* numValues */);
Expand Down

0 comments on commit f428c22

Please sign in to comment.