diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2021-05-27 20:45:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 20:45:02 +0200 |
commit | 20fb3733ba00f0405154c295e6afdc1a0c178f34 (patch) | |
tree | ff4325352c4e83a0803b5fc361c67fb03be47245 /searchlib | |
parent | 3b0bfc0f78e9456e8e53260ac09a533e69f9050f (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.cpp | 2 |
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(); } } |