memtable: delete merge value for range deleteion
Summary: Closes https://github.com/facebook/rocksdb/pull/1797 Differential Revision: D4448004 Pulled By: ajkr fbshipit-source-id: 3ffc27c
This commit is contained in:
parent
aebfd1703b
commit
973f1b78fd
@ -560,7 +560,7 @@ static bool SaveValue(void* arg, const char* entry) {
|
|||||||
ValueType type;
|
ValueType type;
|
||||||
UnPackSequenceAndType(tag, &s->seq, &type);
|
UnPackSequenceAndType(tag, &s->seq, &type);
|
||||||
|
|
||||||
if ((type == kTypeValue || type == kTypeDeletion) &&
|
if ((type == kTypeValue || type == kTypeDeletion || type == kTypeMerge) &&
|
||||||
range_del_agg->ShouldDelete(Slice(key_ptr, key_length))) {
|
range_del_agg->ShouldDelete(Slice(key_ptr, key_length))) {
|
||||||
type = kTypeRangeDeletion;
|
type = kTypeRangeDeletion;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user