Skip to content

docs: correct MemTable entry format comments#1330

Open
Haihan-Jiang wants to merge 1 commit into
google:mainfrom
Haihan-Jiang:fix-memtable-entry-comments
Open

docs: correct MemTable entry format comments#1330
Haihan-Jiang wants to merge 1 commit into
google:mainfrom
Haihan-Jiang:fix-memtable-entry-comments

Conversation

@Haihan-Jiang
Copy link
Copy Markdown

Corrects two MemTable entry format comments so they match the actual internal key layout.

klength stores the internal key length, which includes the 8-byte tag. In Add, the copied key bytes are key.size() and the tag is written separately.

Tests:

  • git diff --check
  • cmake -S . -B /tmp/leveldb-comment-build-lib -DLEVELDB_BUILD_TESTS=OFF -DLEVELDB_BUILD_BENCHMARKS=OFF

Fixes #1281.

@Haihan-Jiang
Copy link
Copy Markdown
Author

This is ready for review. The MemTable entry format comments are corrected, and the visible checks are green.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect comments about key length in MemTable

1 participant