aboutsummaryrefslogtreecommitdiffstats
path: root/storageserver
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-04-17 09:33:53 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-06-22 12:47:00 +0000
commitb56785323aaf66f1db473db130c2126ffdd76b9b (patch)
tree5b10903d9d500e2fe37cdfd8a5e078b4928c2753 /storageserver
parentf323d7eadd378266f2523cf0771aa00abbcd8b0a (diff)
Add a rank feature that will use the distribution key to provide a globally unique number.
unique = (docId << 16 | distributionKey)
Diffstat (limited to 'storageserver')
-rw-r--r--storageserver/src/vespa/storageserver/app/servicelayerprocess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/storageserver/src/vespa/storageserver/app/servicelayerprocess.cpp b/storageserver/src/vespa/storageserver/app/servicelayerprocess.cpp
index af9ba53ef70..bde93b9e4fb 100644
--- a/storageserver/src/vespa/storageserver/app/servicelayerprocess.cpp
+++ b/storageserver/src/vespa/storageserver/app/servicelayerprocess.cpp
@@ -14,7 +14,7 @@ ServiceLayerProcess::ServiceLayerProcess(const config::ConfigUri & configUri)
{
}
-ServiceLayerProcess::~ServiceLayerProcess() {}
+ServiceLayerProcess::~ServiceLayerProcess() = default;
void
ServiceLayerProcess::shutdown()
@@ -26,7 +26,7 @@ ServiceLayerProcess::shutdown()
void
ServiceLayerProcess::createNode()
{
- _externalVisitors["searchvisitor"].reset(new streaming::SearchVisitorFactory(_configUri));
+ _externalVisitors["searchvisitor"] = std::make_shared<streaming::SearchVisitorFactory>(_configUri);
setupProvider();
_node = std::make_unique<ServiceLayerNode>(_configUri, _context, *this, getProvider(), _externalVisitors);
_node->init();