You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, Recently I am learning leveldb by reading its source code. When I saw this function fallow:
voidMemTable::Add(SequenceNumber s, ValueType type, const Slice& key,
const Slice& value) {
// 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()]
I have a question about this comments of key bytes format. Shouldn't it' s size be the user_key 's size which equal to internal_key.size() - 8? Why this comment say its size is the size of the internal_key?
The text was updated successfully, but these errors were encountered:
Hello, Recently I am learning leveldb by reading its source code. When I saw this function fallow:
I have a question about this comments of key bytes format. Shouldn't it' s size be the
user_key
's size which equal tointernal_key.size() - 8
? Why this comment say its size is the size of theinternal_key
?The text was updated successfully, but these errors were encountered: