Skip to content

Commit

Permalink
fix debugging tool function param
Browse files Browse the repository at this point in the history
  • Loading branch information
unw9527 committed Sep 26, 2024
1 parent c050129 commit eb7c06b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/index/b_plus_tree_debug_tool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace bustub {
* Read data from file and insert one by one
*/
INDEX_TEMPLATE_ARGUMENTS
void BPLUSTREE_TYPE::InsertFromFile(const std::string &file_name) {
void BPLUSTREE_TYPE::InsertFromFile(const std::filesystem::path &file_name) {
int64_t key;
std::ifstream input(file_name);
while (input) {
Expand All @@ -42,7 +42,7 @@ void BPLUSTREE_TYPE::InsertFromFile(const std::string &file_name) {
* Read data from file and remove one by one
*/
INDEX_TEMPLATE_ARGUMENTS
void BPLUSTREE_TYPE::RemoveFromFile(const std::string &file_name) {
void BPLUSTREE_TYPE::RemoveFromFile(const std::filesystem::path &file_name) {
int64_t key;
std::ifstream input(file_name);
while (input) {
Expand Down

0 comments on commit eb7c06b

Please sign in to comment.