The block-counts fixture
Worked example: footer revision 5 file
The companion fixture crates/strata-lsm/tests/fixtures/block_counts/0000000000000001.stc shows the newer pair: footer revision 5 with stats revision 2. It is checked by block_counts_fixture.rs.
The footer
Section titled “The footer”The decrypted footer begins:
53 54 43 31 05 00 01 09 ... "STC1", version 5, layer 1, flags 0x09 (STATS|BLOCK_COUNTS)Compare this with the ranged-bloom footer: the version is 5 and the flags are 0x09. STATS (0x01) and BLOCK_COUNTS (0x08) are both set, which is what revision 5 requires.
The stats frame
Section titled “The stats frame”The stats frame is zstd compressed and 208 bytes raw. It begins:
02 13 ... stats version 2, block count 0x13 = 19 blocksand ends with one versions code per block. The versions code tells a reader whether a block holds single versions only; see Versions code.