diff options
author | Tor Egge <Tor.Egge@online.no> | 2022-09-10 18:02:24 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@online.no> | 2022-09-10 18:02:24 +0200 |
commit | 5bb9e10da439602ec2a8f1bc7a1b29c6244b591b (patch) | |
tree | 90f1af8bc109143a72f3cb83712043f5b7c9197f | |
parent | fda7503c125fd5a304cb2bb7d3d4e705f97987b5 (diff) |
Don't use std::move(snapshot) when snapshot is used later on.
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/server/documentdb.cpp | 2 |
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()) { |