aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2022-11-02 14:40:32 +0100
committerTor Egge <Tor.Egge@online.no>2022-11-02 14:40:32 +0100
commitca4de023e18d53ac2889a24554536f4ff3d2a798 (patch)
tree14a1bcf623efeb64a6d1b78b2eb8dab024b57121 /searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp
parent8bc2757879350c2ebe979aa6602bbebe9872ef91 (diff)
Pass subspace to DocVectorAccess::get_vector member function.
Diffstat (limited to 'searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp')
-rw-r--r--searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp b/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp
index 81b56909d57..c5c88d2eeff 100644
--- a/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp
+++ b/searchlib/src/tests/tensor/hnsw_index/stress_hnsw_mt.cpp
@@ -110,8 +110,9 @@ public:
memcpy(&_vectors[docid], vec.cbegin(), sizeof(MallocPointVector));
return *this;
}
- vespalib::eval::TypedCells get_vector(uint32_t docid) const override {
+ vespalib::eval::TypedCells get_vector(uint32_t docid, uint32_t subspace) const override {
assert(docid < NUM_POSSIBLE_DOCS);
+ (void) subspace;
ConstVectorRef ref(_vectors[docid]);
return vespalib::eval::TypedCells(ref);
}