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.
What identifies it
Section titled “What identifies 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.
- magic4 B"STC1"
- version2 B5
- layer1 B
- flags1 BSTATS and COUNTS set
- file_id8 B
- bloom_off8 B
- bloom_len4 B
- index_off8 B
- index_len4 B
- entries8 B
- min_ts8 B
- max_ts8 B
When a writer chooses it
Section titled “When a writer chooses it”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.
What the flags promise
Section titled “What the flags promise”BLOCK_COUNTSmeans the stats frame is stats revision 2, which has per-block version codes.- The bloom may be plain, skip tailed, or ranged tailed:
BLOOM_RANGESset requiresBLOOM_SKIPset. See Bloom filter.
Introduced without a stamp bump
Section titled “Introduced without a stamp bump”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.
Example
Section titled “Example”The block counts fixture is a revision 5 file.