Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Fix bplustree.h redefined constant shared with bwtree.h. #1496

Merged
merged 4 commits into from
Feb 26, 2021

Conversation

lmwnshn
Copy link
Contributor

@lmwnshn lmwnshn commented Feb 25, 2021

Heading

Fix bplustree.h redefined constant shared with bwtree.h.

Description

Some PRs are failing CI due to #define definition leaking in some unity builds, and I think we'd like to avoid random define pollution in headers anyway.

@lmwnshn lmwnshn added best-practice Style fixes or refactor in the code base. Mark issues with this. ready-for-ci Indicate that this build should be run through CI. labels Feb 25, 2021
@lmwnshn lmwnshn self-assigned this Feb 25, 2021
namespace noisepage::storage::index {

// If node size goes above this then we split it
// Thresholds for Inner Node
#define INNER_NODE_SIZE_UPPER_THRESHOLD ((int)128)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should have been constexpr but I guess we missed that on review. We'll do a #define sweep of the codebase again at a later date.

@noisepage-checks
Copy link

Performance Boost!

Nice job! This PR has increased the throughput of the system.

Could not find any performance results to compare for this commit.

@mbutrovich mbutrovich merged commit d8af312 into cmu-db:master Feb 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
best-practice Style fixes or refactor in the code base. Mark issues with this. ready-for-ci Indicate that this build should be run through CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants