mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
LibSQL: Rename Heap
constants to match our code style
No functional changes. The constants are moved to constexpr variables inside `Heap`.
This commit is contained in:
parent
fcd35e824c
commit
194f846f12
8 changed files with 24 additions and 26 deletions
|
@ -271,7 +271,7 @@ void TreeNode::just_insert(Key const& key, TreeNode* right)
|
|||
m_entries.insert(ix, key);
|
||||
VERIFY(is_leaf() == (right == nullptr));
|
||||
m_down.insert(ix + 1, DownPointer(this, right));
|
||||
if (length() > BLOCKSIZE) {
|
||||
if (length() > Heap::BLOCK_SIZE) {
|
||||
split();
|
||||
} else {
|
||||
dump_if(SQL_DEBUG, "To WAL");
|
||||
|
@ -283,7 +283,7 @@ void TreeNode::just_insert(Key const& key, TreeNode* right)
|
|||
m_entries.append(key);
|
||||
m_down.empend(this, right);
|
||||
|
||||
if (length() > BLOCKSIZE) {
|
||||
if (length() > Heap::BLOCK_SIZE) {
|
||||
split();
|
||||
} else {
|
||||
dump_if(SQL_DEBUG, "To WAL");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue