2017-05-23 04:57:45 -07:00
|
|
|
# Tombstones Disk Format
|
|
|
|
|
2017-05-26 08:56:31 -07:00
|
|
|
The following describes the format of a tombstones file, which is placed
|
|
|
|
at the top level directory of a block.
|
2017-05-23 04:57:45 -07: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.
|
|
|
|
|
|
|
|
```
|
|
|
|
┌────────────────────────────┬─────────────────────┐
|
|
|
|
│ magic(0x130BA30) <4b> │ version(1) <1 byte> │
|
|
|
|
├────────────────────────────┴─────────────────────┤
|
|
|
|
│ ┌──────────────────────────────────────────────┐ │
|
2017-05-24 01:12:56 -07:00
|
|
|
│ │ Tombstone 1 │ │
|
2017-05-23 04:57:45 -07:00
|
|
|
│ ├──────────────────────────────────────────────┤ │
|
|
|
|
│ │ ... │ │
|
|
|
|
│ ├──────────────────────────────────────────────┤ │
|
2017-05-24 01:12:56 -07:00
|
|
|
│ │ Tombstone N │ │
|
2017-05-23 04:57:45 -07:00
|
|
|
│ ├──────────────────────────────────────────────┤ │
|
2017-05-24 01:12:56 -07:00
|
|
|
│ │ CRC<4b> │ │
|
2017-05-23 04:57:45 -07:00
|
|
|
│ └──────────────────────────────────────────────┘ │
|
|
|
|
└──────────────────────────────────────────────────┘
|
|
|
|
```
|
|
|
|
|
2017-05-24 01:12:56 -07:00
|
|
|
# Tombstone
|
2017-05-23 04:57:45 -07:00
|
|
|
|
|
|
|
```
|
2017-05-24 01:12:56 -07:00
|
|
|
┌─────────────┬───────────────┬──────────────┐
|
|
|
|
│ref <varint> │ mint <varint> │ maxt <varint>│
|
|
|
|
└─────────────┴───────────────┴──────────────┘
|
2017-05-23 04:57:45 -07:00
|
|
|
```
|