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 /storage | |
parent | 24094168ea91eb1663d9fe2f40b8ba62b552ce19 (diff) |
Metric manager must be initialized too, not only metric engine.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/storageserver/storagenode.cpp | 4 |
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()"); |