瀏覽代碼

Merge pull request #602 from andyli029:feature_fix_lack_tag_comment

PiperOrigin-RevId: 420781095
main
Victor Costan 2 年之前
父節點
當前提交
bda46dd00d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      db/memtable.cc

+ 1
- 0
db/memtable.cc 查看文件

@ -78,6 +78,7 @@ void MemTable::Add(SequenceNumber s, ValueType type, const Slice& key,
// Format of an entry is concatenation of: // Format of an entry is concatenation of:
// key_size : varint32 of internal_key.size() // key_size : varint32 of internal_key.size()
// key bytes : char[internal_key.size()] // key bytes : char[internal_key.size()]
// tag : uint64((sequence << 8) | type)
// value_size : varint32 of value.size() // value_size : varint32 of value.size()
// value bytes : char[value.size()] // value bytes : char[value.size()]
size_t key_size = key.size(); size_t key_size = key.size();

Loading…
取消
儲存