Skip to content

Commit

Permalink
Merge pull request google#602 from andyli029:feature_fix_lack_tag_com…
Browse files Browse the repository at this point in the history
…ment

PiperOrigin-RevId: 420781095
  • Loading branch information
pwnall committed Jan 10, 2022
2 parents ec4e3a5 + f314b63 commit bda46dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/memtable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ void MemTable::Add(SequenceNumber s, ValueType type, const Slice& key,
// 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)
// value_size : varint32 of value.size()
// value bytes : char[value.size()]
size_t key_size = key.size();
Expand Down

0 comments on commit bda46dd

Please sign in to comment.