Sfoglia il codice sorgente

Merge pull request #602 from andyli029:feature_fix_lack_tag_comment

PiperOrigin-RevId: 420781095
naive_version
Victor Costan 2 anni fa
parent
commit
bda46dd00d
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. +1
    -0
      db/memtable.cc

+ 1
- 0
db/memtable.cc Vedi File

@ -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();

Caricamento…
Annulla
Salva