Skip to content

Tag 1 carries a range table: a partition of the key space into ranges, each with a mode.

varint next_id ‖ varint n (>= 1) ‖ n x (varint id ‖ mode u8 ‖ bytes start)
Field Encoding Meaning
next_id varint next range id to hand out
n varint number of ranges, at least 1
id varint range id
mode u8 0 read-write, 1 read-only
start varint len ‖ data start key of the range
  • n is at least 1 and not larger than the edit body length.
  • mode other than 0 or 1 is Corrupt.
  • Ids are unique and satisfy 0 < id < next_id.
  • The first start is empty.
  • Starts are strictly ascending.

If the tag is present in an edit, the ranges are replaced by it, see State and levels. A snapshot includes the table only if it is non-default.