Skip to content

Commit

Permalink
Update bplus_tree.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Lss-lmj authored Dec 26, 2024
1 parent 5271068 commit f5012b0
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/observer/storage/index/bplus_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1460,13 +1460,7 @@ RC BplusTreeHandler::split(BplusTreeMiniTransaction &mtr, Frame *frame, Frame *&
return RC::SUCCESS;
}

template <typename IndexNodeHandlerType>
void BplusTreeHandler::initializeNewNode(BplusTreeMiniTransaction &mtr, Frame *new_frame, IndexNodeHandlerType &old_node)
{
IndexNodeHandlerType new_node(mtr, file_header_, new_frame);
new_node.init_empty();
new_node.set_parent_page_num(old_node.parent_page_num());
}


/*
优化信息
Expand Down

0 comments on commit f5012b0

Please sign in to comment.