Skip to content

Commit

Permalink
Update ExtendibleHTableHeaderPage::GetDirectoryPageId return type
Browse files Browse the repository at this point in the history
  • Loading branch information
jurplel committed Nov 4, 2023
1 parent decbe02 commit 852ac90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/include/storage/page/extendible_htable_header_page.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/storage/page/extendible_htable_header_page.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 852ac90

Please sign in to comment.