diff options
author | Henning Baldersheim <balder@oath.com> | 2018-02-05 15:22:48 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-02-05 15:22:48 +0100 |
commit | 5bae15eab779110e85b77890511ca4c4de63fd7f (patch) | |
tree | d72d98fc1ec7328d5428ea41c45a2fd97bb18f79 /searchcore/src/apps | |
parent | 24094168ea91eb1663d9fe2f40b8ba62b552ce19 (diff) |
Metric manager must be initialized too, not only metric engine.
Diffstat (limited to 'searchcore/src/apps')
-rw-r--r-- | searchcore/src/apps/proton/proton.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/searchcore/src/apps/proton/proton.cpp b/searchcore/src/apps/proton/proton.cpp index 5cdc8e04eb4..70cd8d8a7ad 100644 --- a/searchcore/src/apps/proton/proton.cpp +++ b/searchcore/src/apps/proton/proton.cpp @@ -208,6 +208,11 @@ App::Main() } sigBusHandler.reset(new search::SigBusHandler(stateFile.get())); ioErrorHandler.reset(new search::IOErrorHandler(stateFile.get())); + if ( ! params.serviceidentity.empty()) { + proton.getMetricManager().init(params.serviceidentity, proton.getThreadPool()); + } else { + proton.getMetricManager().init(params.identity, proton.getThreadPool()); + } if (!downPersistence) { proton.init(configSnapshot); } @@ -218,8 +223,6 @@ App::Main() spiProton->setupConfig(params.subscribeTimeout); spiProton->createNode(); EV_STARTED("servicelayer"); - } else { - proton.getMetricManager().init(params.identity, proton.getThreadPool()); } EV_STARTED("proton"); while (!(SIG::INT.check() || SIG::TERM.check() || (spiProton && spiProton->getNode().attemptedStopped()))) { |