aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <tegge@oath.com>2019-01-08 18:15:20 +0000
committerTor Egge <tegge@oath.com>2019-01-08 18:30:29 +0000
commitfbd466a0ef067a353e58b9d973db06475aad2ab0 (patch)
treefecd39c7bdbecdca86686a6312a796e585be4217 /searchlib
parent3629c5eca16a5c518229c87f6a730f3124c2e491 (diff)
Don't compact lid space on source selector if wanted lid limit is higher
than current limit. This can happen when none of the document fields are indexed.
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/fixedsourceselector.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/fixedsourceselector.cpp b/searchlib/src/vespa/searchlib/attribute/fixedsourceselector.cpp
index 2ee35e3403f..c2d43bf63ec 100644
--- a/searchlib/src/vespa/searchlib/attribute/fixedsourceselector.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/fixedsourceselector.cpp
@@ -93,7 +93,9 @@ FixedSourceSelector::setSource(uint32_t docId, queryeval::Source source)
void
FixedSourceSelector::compactLidSpace(uint32_t lidLimit)
{
- _source.compactLidSpace(lidLimit + 1);
+ if (lidLimit < _source.getCommittedDocIdLimit()) {
+ _source.compactLidSpace(lidLimit + 1);
+ }
}
} // namespace search