Skip to content

Commit

Permalink
fix sliding: wrong gapSizeOfLeftSide
Browse files Browse the repository at this point in the history
  • Loading branch information
ray6080 committed Apr 23, 2024
1 parent 7bce922 commit 169b0dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/storage/store/rel_table_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,8 @@ void RelTableData::slideForInsertions(offset_t nodeOffset, length_t numInsertion
leftSize += header.getCSRLength(i);
}
KU_ASSERT(localState.header.getStartCSROffset(nodeOffset) >= leftSize);
auto gapSizeOfLeftSide = localState.header.getStartCSROffset(nodeOffset) - leftSize;
auto gapSizeOfLeftSide = localState.header.getStartCSROffset(nodeOffset) -
localState.header.getEndCSROffset(leftBoundary) - leftSize;
for (auto i = nodeOffset + 1; i <= rightBoundary; i++) {
rightSize += header.getCSRLength(i);
}
Expand Down

0 comments on commit 169b0dd

Please sign in to comment.