From f36e7b1b2e0f7706c28158ff55d640d42c3a7572 Mon Sep 17 00:00:00 2001 From: Roscky <49134059+Roscky@users.noreply.github.com> Date: Wed, 19 Apr 2023 13:39:43 +0800 Subject: [PATCH] fix: b+tree internal_page_size --- src/include/storage/page/b_plus_tree_internal_page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/include/storage/page/b_plus_tree_internal_page.h b/src/include/storage/page/b_plus_tree_internal_page.h index c26a5a86a..dab4222cd 100644 --- a/src/include/storage/page/b_plus_tree_internal_page.h +++ b/src/include/storage/page/b_plus_tree_internal_page.h @@ -19,7 +19,7 @@ namespace bustub { #define B_PLUS_TREE_INTERNAL_PAGE_TYPE BPlusTreeInternalPage #define INTERNAL_PAGE_HEADER_SIZE 12 -#define INTERNAL_PAGE_SIZE ((BUSTUB_PAGE_SIZE - INTERNAL_PAGE_HEADER_SIZE) / (sizeof(MappingType))) +#define INTERNAL_PAGE_SIZE ((BUSTUB_PAGE_SIZE - INTERNAL_PAGE_HEADER_SIZE) / (sizeof(std::pair))) /** * Store n indexed keys and n+1 child pointers (page_id) within internal page. * Pointer PAGE_ID(i) points to a subtree in which all keys K satisfy: