mirror of
https://github.com/versity/scoutfs.git
synced 2026-01-09 05:13:18 +00:00
During log compaction, the SRCH_COMPACT_LOGS_PAD_SAFE trigger was generating inode numbers that were not in sorted order. This resulted in later failures during srch-basic-functionality, because we were winding up with out of order first/last pairs and merging incorrectly. Instead, reuse the single entry in the block repeatedly, generating zero-padded pairs of this entry that are interpreted as create/delete and vanish during searching and merging. These aren't encoded in the normal way, but the extra zeroes are ignored during the decoding phase. Signed-off-by: Chris Kirby <ckirby@versity.com>