-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[breaking/format] Remove vlen from entry header (#945)
This commit removes value length from the entry header stored in each SST. We don't need vlen to store the length of the value. We can find it by using the entry offsets stored in the footer of the blocks. Entries in the table are of the form +-----------------+-------+------+--------+-----------------+------+ | Klen1 (Point A) | Plen1 | Key1 | Value1 | Klen2 (Point B) | .... | +-----------------+-------+------+--------+-----------------+------+ And we have the entry index at the end of each block. +---------------------------+--------------------------+ | Entry1 offset 1 (Point A) | Entry Offset 1 (Point B) | +---------------------------+--------------------------+ Using the entry index and current position in the buffer, we can find the length of the value.
- Loading branch information
Ibrahim Jarif
authored
Aug 7, 2019
1 parent
e843141
commit 88d5a3c
Showing
3 changed files
with
22 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters