You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kvrocks.apache.org by tw...@apache.org on 2023/04/03 02:16:38 UTC
[incubator-kvrocks-website] 01/01: Fix stream field size in data-structure-on-rocksdb
This is an automated email from the ASF dual-hosted git repository.
twice pushed a commit to branch PragmaTwice-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-kvrocks-website.git
commit 84d147f2fb5893a32f6b8c1114845e3ca0fb7e17
Author: Twice <tw...@apache.org>
AuthorDate: Mon Apr 3 10:16:32 2023 +0800
Fix stream field size in data-structure-on-rocksdb
---
community/data-structure-on-rocksdb.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/community/data-structure-on-rocksdb.md b/community/data-structure-on-rocksdb.md
index ff1e4fa..3aa6ae8 100644
--- a/community/data-structure-on-rocksdb.md
+++ b/community/data-structure-on-rocksdb.md
@@ -241,9 +241,9 @@ Each entry in a stream has its unique ID in the form of `MS-SEQ` where `MS` is t
Redis stream is organized by the metadata and sub keys-values. The metadata has fields mentioned before (`flags`, `expiration`, `version`, `size`) and additional fields, that are specific only for this data type. The structure of the metadata value is the following:
- `flags` (1 byte)
-- `expiration` (4 bytes)
+- `expiration` (Ebytes)
- `version` (8 bytes)
-- `size` (4 bytes)
+- `size` (Sbytes)
- `LGE ID MS` (8 bytes) stores the `MS` value of the last generated entry ID
- `LGE ID SEQ` (8 bytes) stores the `SEQ` value of the last generated entry ID
- `RFE ID MS` (8 bytes) stores the `MS` value of the very first entry ID that was added to the stream