Browse Source

add missing zero to tombstone magic number (#448)

add missing zero to tombstone magic number constant.

Signed-off-by: Krasi Georgiev <kgeorgie@redhat.com>
pull/5805/head
Krasi Georgiev 6 years ago committed by GitHub
parent
commit
e4843938ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/format/tombstones.md
  2. 2
      tombstones.go

2
docs/format/tombstones.md

@ -8,7 +8,7 @@ The stones section is 0 padded to a multiple of 4 for fast scans.
```
┌────────────────────────────┬─────────────────────┐
│ magic(0x130BA30) <4b> │ version(1) <1 byte>
│ magic(0x0130BA30) <4b> │ version(1) <1 byte>
├────────────────────────────┴─────────────────────┤
│ ┌──────────────────────────────────────────────┐ │
│ │ Tombstone 1 │ │

2
tombstones.go

@ -29,7 +29,7 @@ const tombstoneFilename = "tombstones"
const (
// MagicTombstone is 4 bytes at the head of a tombstone file.
MagicTombstone = 0x130BA30
MagicTombstone = 0x0130BA30
tombstoneFormatV1 = 1
)

Loading…
Cancel
Save