Skip to content

Commit

Permalink
memtable: delete merge value for range deleteion
Browse files Browse the repository at this point in the history
Summary: Closes facebook#1797

Differential Revision: D4448004

Pulled By: ajkr

fbshipit-source-id: 3ffc27c
  • Loading branch information
yinqiwen authored and facebook-github-bot committed Jan 23, 2017
1 parent aebfd17 commit 973f1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/memtable.cc
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ static bool SaveValue(void* arg, const char* entry) {
ValueType 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))) {
type = kTypeRangeDeletion;
}
Expand Down

0 comments on commit 973f1b7

Please sign in to comment.