summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2023-05-25 14:14:11 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2023-05-25 14:14:27 +0000
commit18a3749298480a2f188dce67adfd98d9a7621941 (patch)
tree0ac7358f5a0a39ed2d1c6a94bc252fa70068c800 /searchcore
parentd180f4be67f0d0ea0e5dc474de4cd08b2dd71c54 (diff)
- Use a rwlock as reading surpasses writing by a very large factor.
- size() does not need a lock.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/tests/proton/attribute/attribute_test.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/searchcore/src/tests/proton/attribute/attribute_test.cpp b/searchcore/src/tests/proton/attribute/attribute_test.cpp
index 4458cd66ad6..bc398866252 100644
--- a/searchcore/src/tests/proton/attribute/attribute_test.cpp
+++ b/searchcore/src/tests/proton/attribute/attribute_test.cpp
@@ -984,13 +984,8 @@ TEST_F(TwoPhasePutTest, handles_assign_update_as_two_phase_put_when_specified_fo
ImportedAttributeVector::SP
createImportedAttribute(const vespalib::string &name)
{
- auto result = ImportedAttributeVectorFactory::create(name,
- std::shared_ptr<ReferenceAttribute>(),
- std::shared_ptr<search::IDocumentMetaStoreContext>(),
- AttributeVector::SP(),
- std::shared_ptr<const search::IDocumentMetaStoreContext>(),
- true);
- result->getSearchCache()->insert("foo", BitVectorSearchCache::Entry::SP());
+ auto result = ImportedAttributeVectorFactory::create(name, {}, {}, {}, {}, true);
+ result->getSearchCache()->insert("foo", {});
return result;
}