aboutsummaryrefslogtreecommitdiff
path: root/src/leveldb/db/memtable.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/leveldb/db/memtable.cc')
-rw-r--r--src/leveldb/db/memtable.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leveldb/db/memtable.cc b/src/leveldb/db/memtable.cc
index bfec0a7e7a..287afdbdcb 100644
--- a/src/leveldb/db/memtable.cc
+++ b/src/leveldb/db/memtable.cc
@@ -101,7 +101,7 @@ void MemTable::Add(SequenceNumber s, ValueType type,
p += 8;
p = EncodeVarint32(p, 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);
}