Skip to content

Commit da2b441

Browse files
authored
refactor: block list refactoring #2580 (#2732)
1 parent 76d697a commit da2b441

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/core/search/block_list.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ template <typename C> typename BlockList<C>::BlockIt BlockList<C>::FindBlock(Doc
4141
if (it != blocks_.begin())
4242
--it;
4343

44-
DCHECK(it == blocks_.begin() || it->Size() > 0);
45-
DCHECK(it == blocks_.begin() || it == blocks_.begin() || it->Size() * 2 >= block_size_);
44+
DCHECK(it == blocks_.begin() || it->Size() * 2 >= block_size_);
4645
DCHECK(it == blocks_.end() || it->Size() <= 2 * block_size_);
4746
return it;
4847
}

src/core/search/block_list.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,7 @@ struct SortedVector {
130130
PMR_NS::vector<DocId> entries_;
131131
};
132132

133+
extern template class BlockList<CompressedSortedSet>;
134+
extern template class BlockList<SortedVector>;
135+
133136
} // namespace dfly::search

0 commit comments

Comments
 (0)