From e4843938bade14d25456a9edfc96a1f78f0163d0 Mon Sep 17 00:00:00 2001 From: Krasi Georgiev Date: Fri, 9 Nov 2018 13:37:02 +0200 Subject: [PATCH] add missing zero to tombstone magic number (#448) add missing zero to tombstone magic number constant. Signed-off-by: Krasi Georgiev --- docs/format/tombstones.md | 2 +- tombstones.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/format/tombstones.md b/docs/format/tombstones.md index 2af0ac98c..308a458a4 100644 --- a/docs/format/tombstones.md +++ b/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 │ │ diff --git a/tombstones.go b/tombstones.go index 0626ac58e..21afd046a 100644 --- a/tombstones.go +++ b/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 )