summaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2021-05-27 20:45:02 +0200
committerGitHub <noreply@github.com>2021-05-27 20:45:02 +0200
commit20fb3733ba00f0405154c295e6afdc1a0c178f34 (patch)
treeff4325352c4e83a0803b5fc361c67fb03be47245 /searchlib
parent3b0bfc0f78e9456e8e53260ac09a533e69f9050f (diff)
Update searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp
Apply suggested change. Co-authored-by: Geir Storli <geirst@verizonmedia.com>
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp b/searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp
index 77cd5b9d559..084dcee141b 100644
--- a/searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp
+++ b/searchlib/src/vespa/searchlib/tensor/dense_tensor_attribute.cpp
@@ -207,7 +207,7 @@ DenseTensorAttribute::onLoad()
// This ensures that get_vector() (via getTensor()) is able to find the newly added tensor.
setCommittedDocIdLimit(lid + 1);
_index->add_document(lid);
- if ((lid % (1u << 8)) == 0) {
+ if ((lid % 256) == 0) {
commit();
}
}