aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-02-07 09:36:45 +0100
committerHenning Baldersheim <balder@oath.com>2018-02-07 09:37:15 +0100
commit989588a8f3de37dc51a3a376388ca24cdcda3c81 (patch)
tree66c6d4985d668b9e9494ef2edeec3688ed7f2475 /searchcore/src
parent67a4cc635d67059c53a1a812d0c7958b1a379ccc (diff)
Start the tls right away
Diffstat (limited to 'searchcore/src')
-rw-r--r--searchcore/src/vespa/searchcore/proton/server/proton.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp
index 533d0737ca2..c5baca74924 100644
--- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp
+++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp
@@ -236,6 +236,7 @@ Proton::init(const BootstrapConfig::SP & configSnapshot)
diskMemUsageSamplerConfig(protonConfig, hwInfo));
_tls = std::make_unique<TLS>(_configUri.createWithNewId(protonConfig.tlsconfigid), _fileHeaderContext);
+ _tls->start();
_metricsEngine->addMetricsHook(_metricsHook);
_fileHeaderContext.setClusterName(protonConfig.clustername, protonConfig.basedir);
_matchEngine.reset(new MatchEngine(protonConfig.numsearcherthreads,
@@ -262,7 +263,6 @@ Proton::init(const BootstrapConfig::SP & configSnapshot)
}
vespalib::mkdir(protonConfig.basedir + "/documents", true);
vespalib::chdir(protonConfig.basedir);
- _tls->start();
_flushEngine.reset(new FlushEngine(std::make_shared<flushengine::TlsStatsFactory>(_tls->getTransLogServer()),
strategy, flush.maxconcurrent, flush.idleinterval*1000));
_fs4Server.reset(new TransportServer(*_matchEngine, *_summaryEngine, *this, protonConfig.ptport, TransportServer::DEBUG_ALL));