Skip to content

Stats revision 2

Only builds that include stats revision 2 support read it; older builds report NewerFormat("block stats").

Stats revision 2 is the block stats frame with the version byte set to 2. It adds one varint versions code per block after the per-block records (SPEC V737). SEAM 1 writers produce it.

It goes together with footer revision 5: that footer sets the BLOCK_COUNTS flag, see Footer flags. Revision 5 is the default for every new file with a stats frame.

Part Revision 1 Revision 2
version byte 1 2
per-block records yes yes, unchanged
per-block varint versions code no yes, after all per-block records

Revision 2 was added to the format without raising the store stamp, because the frame describes its own revision. A build that does not know revision 2 fails with NewerFormat("block stats").