summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2023-03-28 15:27:37 +0200
committerTor Egge <Tor.Egge@online.no>2023-03-28 15:27:37 +0200
commit4eec8a5d1e9875d0631c4768654b3faab223cbb4 (patch)
treee5045e958cb3c4fe75fe8f2ab2d71082e366e051 /searchcore
parent58af4b0ec491b0afb0f607af2966a1f93ae8c411 (diff)
Rename AttributeExecutor::run member function to run_sync.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.cpp2
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.h2
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.cpp
index 71b06a403ff..4d854bfdca1 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.cpp
@@ -20,7 +20,7 @@ AttributeExecutor::AttributeExecutor(std::shared_ptr<IAttributeManager> mgr,
AttributeExecutor::~AttributeExecutor() = default;
void
-AttributeExecutor::run(std::function<void()> task) const
+AttributeExecutor::run_sync(std::function<void()> task) const
{
vespalib::string name = _attr->getNamePrefix();
auto& writer = _mgr->getAttributeFieldWriter();
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.h b/searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.h
index 7573bc7cf0d..4a13fe1d886 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.h
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_executor.h
@@ -25,7 +25,7 @@ public:
AttributeExecutor(std::shared_ptr<IAttributeManager> mgr,
std::shared_ptr<search::AttributeVector> attr);
~AttributeExecutor();
- void run(std::function<void()> task) const;
+ void run_sync(std::function<void()> task) const;
const search::AttributeVector& get_attr() const noexcept { return *_attr; }
};
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp b/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
index a5e16c256bb..2deabeda797 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/attribute_vector_explorer.cpp
@@ -127,7 +127,7 @@ void
AttributeVectorExplorer::get_state(const vespalib::slime::Inserter &inserter, bool full) const
{
auto& attr = _executor->get_attr();
- _executor->run([this, &attr, &inserter, full] { get_state_helper(attr, inserter, full); });
+ _executor->run_sync([this, &attr, &inserter, full] { get_state_helper(attr, inserter, full); });
}
void