diff options
author | andy <zhiangli029@gmail.com> | 2018-06-28 22:03:37 +0800 |
---|---|---|
committer | andy <zhiangli029@gmail.com> | 2018-06-28 22:05:56 +0800 |
commit | f314b63e5e045a64fdaf84bba54f8ed6f47304d3 (patch) | |
tree | ac89b0f6720b10fc757c4daf637d63e9f3bb59f0 | |
parent | 6caf73ad9dae0ee91873bcb39554537b85163770 (diff) | |
download | leveldb-f314b63e5e045a64fdaf84bba54f8ed6f47304d3.tar.gz |
lack of sequence and type in comments to introduce entry format
-rw-r--r-- | db/memtable.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/memtable.cc b/db/memtable.cc index 287afdb..8cefcae 100644 --- a/db/memtable.cc +++ b/db/memtable.cc @@ -85,6 +85,7 @@ void MemTable::Add(SequenceNumber s, ValueType type, // 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(); |