2017-05-23 11:57:45 +00:00
|
|
|
# Tombstones Disk Format
|
|
|
|
|
2017-05-26 15:56:31 +00:00
|
|
|
The following describes the format of a tombstones file, which is placed
|
|
|
|
at the top level directory of a block.
|
2017-05-23 11:57:45 +00:00
|
|
|
|
|
|
|
The last 8 bytes specifies the offset to the start of Stones section.
|
|
|
|
The stones section is 0 padded to a multiple of 4 for fast scans.
|
|
|
|
|
|
|
|
```
|
|
|
|
┌────────────────────────────┬─────────────────────┐
|
2018-11-09 11:37:02 +00:00
|
|
|
│ magic(0x0130BA30) <4b> │ version(1) <1 byte> │
|
2017-05-23 11:57:45 +00:00
|
|
|
├────────────────────────────┴─────────────────────┤
|
|
|
|
│ ┌──────────────────────────────────────────────┐ │
|
2017-05-24 08:12:56 +00:00
|
|
|
│ │ Tombstone 1 │ │
|
2017-05-23 11:57:45 +00:00
|
|
|
│ ├──────────────────────────────────────────────┤ │
|
|
|
|
│ │ ... │ │
|
|
|
|
│ ├──────────────────────────────────────────────┤ │
|
2017-05-24 08:12:56 +00:00
|
|
|
│ │ Tombstone N │ │
|
2017-05-23 11:57:45 +00:00
|
|
|
│ ├──────────────────────────────────────────────┤ │
|
2017-05-24 08:12:56 +00:00
|
|
|
│ │ CRC<4b> │ │
|
2017-05-23 11:57:45 +00:00
|
|
|
│ └──────────────────────────────────────────────┘ │
|
|
|
|
└──────────────────────────────────────────────────┘
|
|
|
|
```
|
|
|
|
|
2017-05-24 08:12:56 +00:00
|
|
|
# Tombstone
|
2017-05-23 11:57:45 +00:00
|
|
|
|
|
|
|
```
|
2020-10-19 08:57:19 +00:00
|
|
|
┌───────────────────────┬─────────────────┬────────────────┐
|
|
|
|
│series ref <uvarint64> │ mint <varint64> │ maxt <varint64>│
|
|
|
|
└───────────────────────┴─────────────────┴────────────────┘
|
2017-05-23 11:57:45 +00:00
|
|
|
```
|