diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-11-03 12:59:09 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-11-03 12:59:09 +0100 |
commit | 184171707297908e39aa217c013882b4aee77172 (patch) | |
tree | 1f9e7f639c54c8fb9beae34535311e54badb33af /searchcore | |
parent | 3b9510271a5cb3ca0e1b2040ab85b2a308974040 (diff) |
Wait untill all structures are up before allowing inspection of them.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/server/proton.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/server/proton.cpp b/searchcore/src/vespa/searchcore/proton/server/proton.cpp index aa1c8483c8d..cd016e5cfc4 100644 --- a/searchcore/src/vespa/searchcore/proton/server/proton.cpp +++ b/searchcore/src/vespa/searchcore/proton/server/proton.cpp @@ -311,14 +311,14 @@ Proton::init(const BootstrapConfig::SP & configSnapshot) RPCHooks::Params rpcParams(*this, protonConfig.rpcport, _configUri.getConfigId()); rpcParams.slobrok_config = _configUri.createWithNewId(protonConfig.slobrokconfigid); _rpcHooks.reset(new RPCHooks(rpcParams)); - + + waitForInitDone(); + _metricsEngine->start(_configUri); _stateServer.reset(new vespalib::StateServer(protonConfig.httpport, _healthAdapter, _metricsEngine->metrics_producer(), *this)); _customComponentBindToken = _stateServer->repo().bind(CUSTOM_COMPONENT_API_PATH, _genericStateHandler); _customComponentRootToken = _stateServer->repo().add_root_resource(CUSTOM_COMPONENT_API_PATH); - waitForInitDone(); - _executor.sync(); waitForOnlineState(); _isReplayDone = true; |