Skip to content

Footer revision 5: block counts

Only builds that include footer revision 5 support read it; older builds report NewerFormat("sst footer").

Footer revision 5 is the footer of a SEAM data file that has a stats frame with per-block version codes. It is the default for every new file. SEAM 1 writers produce it, and SEAM 1 readers read it.

Field Value in revision 5
magic "STC1"
version 5
flags STATS (0x01) and COUNTS (0x08) set. RANGES implies SKIP.

The 64-byte plaintext has the same shape in every revision, see Footer.

Footer plaintext, 64 bytes (the same in every revision)
  1. magic4 B"STC1"
  2. version2 B5
  3. layer1 B
  4. flags1 BSTATS and COUNTS set
  5. file_id8 B
  6. bloom_off8 B
  7. bloom_len4 B
  8. index_off8 B
  9. index_len4 B
  10. entries8 B
  11. min_ts8 B
  12. max_ts8 B

When the file has a stats frame. This rule has the highest priority, so every new file with stats gets revision 5 whatever else it contains, see Choosing a footer revision.

Like revision 4, revision 5 was added to the format without raising the store stamp. A build that does not know revision 5 reads the footer, sees version 5, and fails with NewerFormat("sst footer") (SPEC V737). See Compatibility rules.

The block counts fixture is a revision 5 file.