We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f0e2cc commit d71156fCopy full SHA for d71156f
memtable.go
@@ -41,6 +41,8 @@ func (mt *memTable) get(key []byte) ([]byte, bool) {
41
func (mt *memTable) delete(key []byte) error {
42
value, exists := mt.data.Put(key, nil)
43
if !exists {
44
+ mt.b += len(key)
45
+ } else {
46
mt.b -= len(value)
47
}
48
0 commit comments