[GH-ISSUE #5] B+Tree empty leaf issue #6

Closed
opened 2026-05-23 08:25:06 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @appy-one on GitHub (Feb 3, 2021).
Original GitHub issue: https://github.com/appy-one/acebase/issues/5

Originally assigned to: @appy-one on GitHub.

Bug: If a B+Tree leaf becomes empty (all its entries have been removed), iterating the tree fails on leaf.getNext() because a console.assert assumes there are entries in the leaf.

Solution: Change console.assert to allow 0 leaf entries

Enhancement: While having empty leafs is ok, it would be nicer if they were removed once they become empty.

Originally created by @appy-one on GitHub (Feb 3, 2021). Original GitHub issue: https://github.com/appy-one/acebase/issues/5 Originally assigned to: @appy-one on GitHub. Bug: If a B+Tree leaf becomes empty (all its entries have been removed), iterating the tree fails on leaf.getNext() because a console.assert assumes there are entries in the leaf. Solution: Change console.assert to allow 0 leaf entries Enhancement: While having empty leafs is ok, it would be nicer if they were removed once they become empty.
gitea-mirror 2026-05-23 08:25:06 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase#6
No description provided.