aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
diff options
context:
space:
mode:
authorGeir Storli <geirst@oath.com>2018-04-19 10:40:03 +0000
committerGeir Storli <geirst@oath.com>2018-04-19 10:42:21 +0000
commit6a26d4ed5021be4ed75727167fbf194ec3faba12 (patch)
tree5567b626e4371e1a626aa77eb0d02c215675d3c8 /searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
parent1e0a2f24d4159edf46b5b457f07b33121d7e5bbf (diff)
Add ReadableAttributeVector interface used to create a short-lived read guard over an attribute vector.
Let AttributeVector and ImportedAttributeVector implement this interface.
Diffstat (limited to 'searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp')
-rw-r--r--searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
index dd089446065..62244b2c3d6 100644
--- a/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/imported_attribute_vector.cpp
@@ -38,7 +38,7 @@ ImportedAttributeVector::ImportedAttributeVector(vespalib::stringref name,
ImportedAttributeVector::~ImportedAttributeVector() {
}
-std::unique_ptr<IAttributeVector>
+std::unique_ptr<AttributeReadGuard>
ImportedAttributeVector::makeReadGuard(bool stableEnumGuard) const
{
return std::make_unique<ImportedAttributeVectorReadGuard>(*this, stableEnumGuard);