From 852ac90bd98f885c662b149457f7ca50d05054f2 Mon Sep 17 00:00:00 2001 From: Benjamin O Date: Sat, 4 Nov 2023 10:38:12 -0400 Subject: [PATCH] Update ExtendibleHTableHeaderPage::GetDirectoryPageId return type --- src/include/storage/page/extendible_htable_header_page.h | 2 +- src/storage/page/extendible_htable_header_page.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/storage/page/extendible_htable_header_page.h b/src/include/storage/page/extendible_htable_header_page.h index 040022404..161f0d32a 100644 --- a/src/include/storage/page/extendible_htable_header_page.h +++ b/src/include/storage/page/extendible_htable_header_page.h @@ -57,7 +57,7 @@ class ExtendibleHTableHeaderPage { * @param directory_idx index in the directory page id array * @return directory page_id at index */ - auto GetDirectoryPageId(uint32_t directory_idx) const -> uint32_t; + auto GetDirectoryPageId(uint32_t directory_idx) const -> page_id_t; /** * @brief Set the directory page id at an index diff --git a/src/storage/page/extendible_htable_header_page.cpp b/src/storage/page/extendible_htable_header_page.cpp index a45f78fed..99269bca5 100644 --- a/src/storage/page/extendible_htable_header_page.cpp +++ b/src/storage/page/extendible_htable_header_page.cpp @@ -23,7 +23,7 @@ void ExtendibleHTableHeaderPage::Init(uint32_t max_depth) { auto ExtendibleHTableHeaderPage::HashToDirectoryIndex(uint32_t hash) const -> uint32_t { return 0; } -auto ExtendibleHTableHeaderPage::GetDirectoryPageId(uint32_t directory_idx) const -> uint32_t { return 0; } +auto ExtendibleHTableHeaderPage::GetDirectoryPageId(uint32_t directory_idx) const -> page_id_t { return 0; } void ExtendibleHTableHeaderPage::SetDirectoryPageId(uint32_t directory_idx, page_id_t directory_page_id) { throw NotImplementedException("ExtendibleHTableHeaderPage is not implemented");