Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions sstables/super_sstable_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ func (s SuperSSTableReader) Contains(key []byte) (bool, error) {
if err != nil {
return false, err
}
if !keyExist {
continue
if keyExist {
return true, nil
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mind to add a unit test for this too? I wonder why this just passes :D

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check if the test cover this

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added this as part of 44b5b67

thanks for fixing this as well, I'll see whether we need some more test coverage around this right now

}
// we have to check if the value is not tombstoned
// maybe had to be implemented in an IsTombstoned in sstableReader
res, err := s.readers[i].Get(key)
return res != nil, err
}

return false, nil
Expand Down
Loading