|
@ -101,7 +101,7 @@ void MemTable::Add(SequenceNumber s, ValueType type, |
|
|
p += 8; |
|
|
p += 8; |
|
|
p = EncodeVarint32(p, val_size); |
|
|
p = EncodeVarint32(p, val_size); |
|
|
memcpy(p, value.data(), val_size); |
|
|
memcpy(p, value.data(), val_size); |
|
|
assert((p + val_size) - buf == encoded_len); |
|
|
|
|
|
|
|
|
assert(p + val_size == buf + encoded_len); |
|
|
table_.Insert(buf); |
|
|
table_.Insert(buf); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|