Skip to content

Commit c3af257

Browse files
authored
Try to improve read_documents (iresearch-toolkit#568)
* Update formats_burst_trie.cpp * Update formats_burst_trie.cpp
1 parent 3d6fc23 commit c3af257

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/formats/formats_burst_trie.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3208,7 +3208,8 @@ class field_reader final : public irs::field_reader {
32083208

32093209
size_t read_documents(bytes_view term,
32103210
std::span<doc_id_t> docs) const final {
3211-
if (IRS_UNLIKELY(docs.empty())) {
3211+
// Order is important here!
3212+
if (max() < term || term < min() || docs.empty()) {
32123213
return 0;
32133214
}
32143215

0 commit comments

Comments
 (0)