aboutsummaryrefslogtreecommitdiffstats
path: root/storageserver
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2021-01-18 19:46:50 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2021-01-18 19:58:27 +0000
commitabc81c8281f86d26e4a9f4b804640d2f3a99cb72 (patch)
tree16a50b17021e56994747795f59f71d62f5b221c7 /storageserver
parentccb0e462b5cd0d6fc8fa78ff12bfd0784a29202e (diff)
Include exception where needed and use std:.make_unique
Diffstat (limited to 'storageserver')
-rw-r--r--storageserver/src/apps/storaged/storage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/storageserver/src/apps/storaged/storage.cpp b/storageserver/src/apps/storaged/storage.cpp
index 8fbeeb836da..8098ee138db 100644
--- a/storageserver/src/apps/storaged/storage.cpp
+++ b/storageserver/src/apps/storaged/storage.cpp
@@ -17,6 +17,7 @@
#include <vespa/storageserver/app/dummyservicelayerprocess.h>
#include <vespa/vespalib/util/programoptions.h>
#include <vespa/vespalib/util/shutdownguard.h>
+#include <vespa/vespalib/util/exceptions.h>
#include <vespa/config/helper/configgetter.hpp>
#include <vespa/fastos/app.h>
#include <iostream>
@@ -36,7 +37,7 @@ Process::UP createProcess(vespalib::stringref configId) {
config::ConfigUri uri(configId);
std::unique_ptr<vespa::config::content::core::StorServerConfig> serverConfig = config::ConfigGetter<vespa::config::content::core::StorServerConfig>::getConfig(uri.getConfigId(), uri.getContext());
if (serverConfig->isDistributor) {
- return Process::UP(new DistributorProcess(configId));
+ return std::make_unique<DistributorProcess>(configId);
} else switch (serverConfig->persistenceProvider.type) {
case vespa::config::content::core::StorServerConfig::PersistenceProvider::Type::STORAGE:
case vespa::config::content::core::StorServerConfig::PersistenceProvider::Type::DUMMY: