Files
turso/core
Pekka Enberg 2eda8a54d9 Merge 'Fix various bugs in B-Tree handling' from Nikita Sivukhin
This PR introduce simple fuzz test for BTree insertion algorithm and
fixes few bugs found by fuzzer
- BTree algorithm returned early although there were overflow pages on
stack and more rebalances were needed
- BTree balancing algorithm worked under assumption that single page
will be enough for rebalance - although this is not always true (if page
were tightly packed with relatively big cells, insertion of new very big
cell can require 3 split pages to distribute the content between them)
- `overflow_cells` wasn't cleared properly during rebalancing
- insertions of dividers to the parent node were implemented incorrectly
- `defragment_page` didn't reset
`PAGE_HEADER_OFFSET_FRAGMENTED_BYTES_COUNT` field which can lead to
suboptimal usage of pages

Closes #951
2025-02-10 07:40:27 +02:00
..
2025-02-08 10:55:13 +02:00
2025-02-06 10:44:37 +02:00
2025-01-28 14:55:38 -05:00
2025-02-06 23:46:00 -03:00
2025-01-28 14:55:38 -05:00
2025-02-06 13:40:34 +02:00
2024-12-24 18:04:30 +01:00
2025-02-08 12:38:32 +04:00