mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-31 20:16:43 +00:00
lcs: remove useless filter for demotion procedure
there's no way a sstable from a level higher than N+1 will be in set of candidates that can be either level N or level N + 1. Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com> Message-Id: <20170711140241.11023-1-raphaelsc@scylladb.com>
This commit is contained in:
committed by
Avi Kivity
parent
33bc62a9cf
commit
ebb5dafef0
@@ -316,15 +316,8 @@ private:
|
||||
auto r = ::range<dht::decorated_key>::make(sstable->get_first_decorated_key(), sstable->get_last_decorated_key());
|
||||
if (boundaries.contains(r, dht::ring_position_comparator(*_schema))) {
|
||||
logger.info("Adding high-level (L{}) {} to candidates", sstable->get_sstable_level(), sstable->get_filename());
|
||||
|
||||
auto result = std::find_if(std::begin(candidates), std::end(candidates), [&sstable] (auto& candidate) {
|
||||
return sstable->generation() == candidate->generation();
|
||||
});
|
||||
if (result != std::end(candidates)) {
|
||||
continue;
|
||||
}
|
||||
candidates.push_back(sstable);
|
||||
return candidates;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return candidates;
|
||||
|
||||
Reference in New Issue
Block a user