Skip to content

Commit

Permalink
Update Tree.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
wq authored Jul 5, 2022
1 parent 091e34f commit 4a76259
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ Tree::Tree(DSM *dsm, uint16_t tree_id) : dsm(dsm), tree_id(tree_id) {

void Tree::print_verbose() {

constexpr int kLeafHdrOffset = STRUCT_OFFSET(LeafPage, hdr);
constexpr int kInternalHdrOffset = STRUCT_OFFSET(InternalPage, hdr);
int kLeafHdrOffset = STRUCT_OFFSET(LeafPage, hdr);
int kInternalHdrOffset = STRUCT_OFFSET(InternalPage, hdr);
static_assert(kLeafHdrOffset == kInternalHdrOffset, "XXX");

if (dsm->getMyNodeID() == 0) {
Expand Down Expand Up @@ -1237,4 +1237,4 @@ void Tree::clear_statistics() {
cache_hit[i][0] = 0;
cache_miss[i][0] = 0;
}
}
}

0 comments on commit 4a76259

Please sign in to comment.