Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
Backport read_documents improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
MBkkt committed Oct 13, 2023
1 parent 7fec72f commit 43f6ba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/formats/formats_burst_trie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3185,7 +3185,8 @@ class field_reader final : public irs::field_reader {

size_t read_documents(bytes_view term,
std::span<doc_id_t> docs) const final {
if (IRS_UNLIKELY(docs.empty())) {
// Order is important here!
if (max() < term || term < min() || docs.empty()) {
return 0;
}

Expand Down

0 comments on commit 43f6ba1

Please sign in to comment.