Latte: Fix rare corruption in buffer cache
Some checks are pending
Build check / build (push) Waiting to run
Generate translation template / generate-pot (push) Waiting to run

This commit is contained in:
Exzap 2026-05-06 05:49:06 +02:00
parent 12970c2da6
commit e8bee64b5e

View File

@ -776,9 +776,8 @@ private:
{
TreeNode* treeNodeParent = (treeNode->parentNodeIndex != INVALID_NODE_INDEX) ? &m_treeNodes[treeNode->parentNodeIndex] : nullptr;
ReleaseTreeNode(treeNode, true);
if (treeNodeParent && treeNodeParent->usedCount > 0)
PropagateMinValue(treeNodeParent);
// note - this will never shrink the tree, since there is at least one left or right neighbor
if (treeNodeParent)
CollapseNode(treeNodeParent, depth - 1);
return;
}
// todo - redistribute values