Skip to content

Commit

Permalink
fix numNodes in CopyNode
Browse files Browse the repository at this point in the history
  • Loading branch information
ray6080 committed Oct 7, 2023
1 parent 98d420a commit 7287fae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/processor/operator/persistent/copy_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,9 @@ void CopyNode::checkNonNullConstraint(NullColumnChunk* nullChunk, offset_t numNo
}

void CopyNode::finalize(ExecutionContext* context) {
uint64_t numNodes = StorageUtils::getStartOffsetOfNodeGroup(sharedState->getCurNodeGroupIdx()) +
sharedState->sharedNodeGroup->getNumNodes();
uint64_t numNodes = StorageUtils::getStartOffsetOfNodeGroup(sharedState->getCurNodeGroupIdx());
if (sharedState->sharedNodeGroup) {
numNodes += sharedState->sharedNodeGroup->getNumNodes();
auto nodeGroupIdx = sharedState->getNextNodeGroupIdx();
writeAndResetNodeGroup(nodeGroupIdx, sharedState->pkIndex.get(), sharedState->pkColumnID,
sharedState->table, sharedState->sharedNodeGroup.get(), sharedState->isCopyRdf);
Expand Down

0 comments on commit 7287fae

Please sign in to comment.