From e081406b5bc7925c7e5ed1f83e17712e04404b6b Mon Sep 17 00:00:00 2001 From: zhulongcheng Date: Thu, 19 Sep 2019 18:56:32 +0800 Subject: [PATCH] tsdb: update chunks format (#6033) Signed-off-by: zhulongcheng --- tsdb/docs/format/chunks.md | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/tsdb/docs/format/chunks.md b/tsdb/docs/format/chunks.md index 1ef86037f..e34f8aab9 100644 --- a/tsdb/docs/format/chunks.md +++ b/tsdb/docs/format/chunks.md @@ -8,17 +8,21 @@ Chunks in the files are referenced from the index by uint64 composed of in-file offset (lower 4 bytes) and segment sequence number (upper 4 bytes). ``` -┌────────────────────────────┬─────────────────────┐ -│ magic(0x85BD40DD) <4 byte> │ version(1) <1 byte> │ -├────────────────────────────┴─────────────────────┤ -│ ┌──────────────────────────────────────────────┐ │ -│ │ Chunk 1 │ │ -│ ├──────────────────────────────────────────────┤ │ -│ │ ... │ │ -│ ├──────────────────────────────────────────────┤ │ -│ │ Chunk N │ │ -│ └──────────────────────────────────────────────┘ │ -└──────────────────────────────────────────────────┘ +┌──────────────────────────────┐ +│ magic(0x85BD40DD) <4 byte> │ +├──────────────────────────────┤ +│ version(1) <1 byte> │ +├──────────────────────────────┤ +│ padding(0) <3 byte> │ +├──────────────────────────────┤ +│ ┌──────────────────────────┐ │ +│ │ Chunk 1 │ │ +│ ├──────────────────────────┤ │ +│ │ ... │ │ +│ ├──────────────────────────┤ │ +│ │ Chunk N │ │ +│ └──────────────────────────┘ │ +└──────────────────────────────┘ ```