Преглед изворни кода

lack of sequence and type in comments to introduce entry format

ld
andy пре 6 година
родитељ
комит
f314b63e5e
1 измењених фајлова са 1 додато и 0 уклоњено
  1. +1
    -0
      db/memtable.cc

+ 1
- 0
db/memtable.cc Прегледај датотеку

@ -85,6 +85,7 @@ void MemTable::Add(SequenceNumber s, ValueType type,
// 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…
Откажи
Сачувај