summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@yahoo-inc.com>2017-05-12 12:21:55 +0000
committerTor Egge <Tor.Egge@yahoo-inc.com>2017-05-12 12:21:55 +0000
commite4ac6dca94b738073256c2590893aef46579edda (patch)
tree085084ad2ae23c6436a2f04fd793395169020928
parent2e671855a30e38dd447dfeabdc201d7dd2157fbe (diff)
Fix assert, it is not legal to extend lid space using compactLidSpace().
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributevector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/attributevector.cpp b/searchlib/src/vespa/searchlib/attribute/attributevector.cpp
index 7ab5ac5fd91..e3fb780bb16 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributevector.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributevector.cpp
@@ -707,7 +707,7 @@ uint32_t AttributeVector::getVersion() const { return 0; }
void
AttributeVector::compactLidSpace(uint32_t wantedLidLimit) {
commit();
- assert(_uncommittedDocIdLimit <= wantedLidLimit);
+ assert(_committedDocIdLimit >= wantedLidLimit);
if (wantedLidLimit < _committedDocIdLimit) {
clearDocs(wantedLidLimit, _committedDocIdLimit);
}