Skip to content

Comments

Document tag field in MemTable entry format#602

Merged
pwnall merged 1 commit intogoogle:masterfrom
andyli029:feature_fix_lack_tag_comment
Jan 10, 2022
Merged

Document tag field in MemTable entry format#602
pwnall merged 1 commit intogoogle:masterfrom
andyli029:feature_fix_lack_tag_comment

Conversation

@andyli029
Copy link
Contributor

No description provided.

@andyli029
Copy link
Contributor Author

andyli029 commented Jul 14, 2018

@ghemawat @pwnall please review?

Copy link
Member

@pwnall pwnall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you for the improvement!

// Format of an entry is concatenation of:
// key_size : varint32 of internal_key.size()
// key bytes : char[internal_key.size()]
// tag : uint64((sequence << 8) | type)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll align tag with the other members.

@pwnall pwnall changed the title lack of sequence and type in comments to introduce entry format Document tag field in MemTable entry format Jan 10, 2022
@pwnall pwnall merged commit bda46dd into google:master Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants