summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@oath.com>2018-02-05 15:22:48 +0100
committerHenning Baldersheim <balder@oath.com>2018-02-05 15:22:48 +0100
commit5bae15eab779110e85b77890511ca4c4de63fd7f (patch)
treed72d98fc1ec7328d5428ea41c45a2fd97bb18f79 /storage
parent24094168ea91eb1663d9fe2f40b8ba62b552ce19 (diff)
Metric manager must be initialized too, not only metric engine.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/storageserver/storagenode.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/storage/src/vespa/storage/storageserver/storagenode.cpp b/storage/src/vespa/storage/storageserver/storagenode.cpp
index 6be8f0a5ec8..aa5475df823 100644
--- a/storage/src/vespa/storage/storageserver/storagenode.cpp
+++ b/storage/src/vespa/storage/storageserver/storagenode.cpp
@@ -215,7 +215,9 @@ StorageNode::initialize()
// and the like. Note that at this time, all metrics should hopefully
// have been created, such that we don't need to pay the extra cost of
// reinitializing metric manager often.
- _context.getComponentRegister().getMetricManager().init(_configUri, _context.getThreadPool());
+ if ( ! _context.getComponentRegister().getMetricManager().isInitialized() ) {
+ _context.getComponentRegister().getMetricManager().init(_configUri, _context.getThreadPool());
+ }
if (_chain) {
LOG(debug, "Storage chain configured. Calling open()");