Skip to content

Commit

Permalink
Adapt to CodeReview changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Qup42 committed Jun 21, 2024
1 parent fcdeb8c commit 72a930b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/index/CompressedRelation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,12 +642,7 @@ DecompressedBlock CompressedRelationReader::addUpdateTriples(
if (numInserts == 0 && numDeletes == 0) {
return block;
}
DecompressedBlock blockWithUpdate{block.numColumns(), allocator_};
blockWithUpdate.resize(block.numRows() + numInserts);
auto rowsWritten = locatedTriples.mergeTriples(
blockIndex, std::move(block), blockWithUpdate, 0, numIndexColumns);
blockWithUpdate.resize(rowsWritten);
return blockWithUpdate;
return locatedTriples.mergeTriples(blockIndex, block, numIndexColumns);
}

// ____________________________________________________________________________
Expand Down

0 comments on commit 72a930b

Please sign in to comment.