summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-11-26 09:47:50 +0000
committerArne Juul <arnej@verizonmedia.com>2020-11-26 13:35:08 +0000
commitd5c16579174f3e20b4cc67886476aa9e05408102 (patch)
treee5572219d61fa49a503ba29274908b8359b78284 /searchlib
parentd68669ae2a1e35b88db93308f6c4922f698c4ab2 (diff)
more consistent version checking
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/tensor/serialized_fast_value_attribute.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/tensor/serialized_fast_value_attribute.cpp b/searchlib/src/vespa/searchlib/tensor/serialized_fast_value_attribute.cpp
index 35c6ca42fe3..63a4a9eabf9 100644
--- a/searchlib/src/vespa/searchlib/tensor/serialized_fast_value_attribute.cpp
+++ b/searchlib/src/vespa/searchlib/tensor/serialized_fast_value_attribute.cpp
@@ -21,8 +21,6 @@ namespace search::tensor {
namespace {
-constexpr uint32_t TENSOR_ATTRIBUTE_VERSION = 0;
-
struct ValueBlock : LabelBlock {
TypedCells cells;
};
@@ -154,7 +152,6 @@ SerializedFastValueAttribute::getTensor(DocId docId) const
return {};
}
-
bool
SerializedFastValueAttribute::onLoad()
{
@@ -163,7 +160,7 @@ SerializedFastValueAttribute::onLoad()
return false;
}
setCreateSerialNum(tensorReader.getCreateSerialNum());
- assert(tensorReader.getVersion() == TENSOR_ATTRIBUTE_VERSION);
+ assert(tensorReader.getVersion() == getVersion());
uint32_t numDocs(tensorReader.getDocIdLimit());
_refVector.reset();
_refVector.unsafe_reserve(numDocs);