mirror of
https://github.com/versity/scoutfs.git
synced 2026-07-30 20:13:17 +00:00
The btree block merging code knew to try and compact the destination block if it was going to move more bytes worth of items than there was contiguous free space in the destination block. But it missed the case where item movement moves more than the hint because the last item it moves was big. In the worst case this creates an item which overlaps the item offsets and ends up looking like corrupt items. Signed-off-by: Zach Brown <zab@versity.com>