Skip to content

After the fixed part of an edit comes zero or more tagged sections. Each is a tag byte followed by a body. They may appear in any order. A repeat of tag 1, 4, 5 or 7 is Corrupt("manifest trailing bytes"); a repeat of tag 2 is not detected and overwrites the first. Writers emit them in the order 1, 2, 4, 5, 7. Any other tag value is Corrupt("manifest trailing bytes"). Here bytes means varint len ‖ data.

Tag Body Meaning
1 varint next_id ‖ varint n (>= 1) ‖ n x (varint id ‖ mode u8 ‖ bytes start) range table
2 varint n (== n_adds) ‖ n x varint global_ts per-add global timestamp
3 none never written; decoders reject it
4 varint gc_floor MVCC GC floor in microseconds
5 varint n (== n_adds) ‖ n x varint format per-file stamp
6 none reserved (SPEC V458); decoders reject it
7 varint n (<= 65536) ‖ n x (bytes start ‖ bytes end ‖ varint ts ‖ varint lsn) range drops
other none Corrupt("manifest trailing bytes")