diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2022-02-20 23:26:55 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2022-02-20 23:34:51 +0000 |
commit | acbdc8385fef981a9bc5cbfb46483c54c953dc04 (patch) | |
tree | 1d9c02e4e9476510dd32131cad01940969493806 /storageserver/src/apps | |
parent | 1cfea65b9bc71b472e9dc3370b120cf428b6ece0 (diff) |
Make ConfigUri constructors explicit and use same context where possible in proton.
Diffstat (limited to 'storageserver/src/apps')
-rw-r--r-- | storageserver/src/apps/storaged/storage.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storageserver/src/apps/storaged/storage.cpp b/storageserver/src/apps/storaged/storage.cpp index 2c79ebf700b..aaa85f7f476 100644 --- a/storageserver/src/apps/storaged/storage.cpp +++ b/storageserver/src/apps/storaged/storage.cpp @@ -37,11 +37,11 @@ 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 std::make_unique<DistributorProcess>(configId); + return std::make_unique<DistributorProcess>(uri); } else switch (serverConfig->persistenceProvider.type) { case vespa::config::content::core::StorServerConfig::PersistenceProvider::Type::STORAGE: case vespa::config::content::core::StorServerConfig::PersistenceProvider::Type::DUMMY: - return std::make_unique<DummyServiceLayerProcess>(configId); + return std::make_unique<DummyServiceLayerProcess>(uri); default: throw vespalib::IllegalStateException("Unknown persistence provider.", VESPA_STRLOC); } |