summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-09-10 18:40:49 +0200
committerGitHub <noreply@github.com>2022-09-10 18:40:49 +0200
commit2b533a5bda75247b4cff2754c0d48bfd2909b87c (patch)
tree90f1af8bc109143a72f3cb83712043f5b7c9197f
parentfda7503c125fd5a304cb2bb7d3d4e705f97987b5 (diff)
parent5bb9e10da439602ec2a8f1bc7a1b29c6244b591b (diff)
Merge pull request #24004 from vespa-engine/toregge/avoid-std-move-on-variable-used-later-on
Don't use std::move(snapshot) when snapshot is used later on.
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/documentdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp b/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp
index 2ae7e38cf4a..d9984f06ece 100644
--- a/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/documentdb.cpp
@@ -809,7 +809,7 @@ DocumentDB::setIndexSchema(const DocumentDBConfig &configSnapshot, SerialNum ser
void
DocumentDB::reconfigure(DocumentDBConfig::SP snapshot)
{
- masterExecute([this, snapshot=std::move(snapshot)]() mutable { newConfigSnapshot(std::move(snapshot)); });
+ masterExecute([this, snapshot]() mutable { newConfigSnapshot(std::move(snapshot)); });
// Wait for config to be applied, or for document db close
std::unique_lock<std::mutex> guard(_configMutex);
while ((_activeConfigSnapshotGeneration < snapshot->getGeneration()) && !_state.getClosed()) {